Click here to Skip to main content
15,899,126 members
Home / Discussions / C#
   

C#

 
AnswerRe: sending mails Pin
R. Giskard Reventlov2-Mar-12 5:25
R. Giskard Reventlov2-Mar-12 5:25 
AnswerRe: sending mails Pin
RobCroll2-Mar-12 12:12
RobCroll2-Mar-12 12:12 
AnswerRe: sending mails Pin
Bernhard Hiller4-Mar-12 19:34
Bernhard Hiller4-Mar-12 19:34 
Questionhtml editor Pin
MemberDotNetting2-Mar-12 2:12
MemberDotNetting2-Mar-12 2:12 
AnswerRe: html editor Pin
Richard MacCutchan2-Mar-12 2:22
mveRichard MacCutchan2-Mar-12 2:22 
GeneralRe: html editor Pin
BillWoodruff3-Mar-12 23:28
professionalBillWoodruff3-Mar-12 23:28 
GeneralRe: html editor Pin
Richard MacCutchan4-Mar-12 0:23
mveRichard MacCutchan4-Mar-12 0:23 
AnswerRe: html editor Pin
Montasser Ben Ouhida2-Mar-12 4:43
Montasser Ben Ouhida2-Mar-12 4:43 
Hi,
My idea is converting an RTF document to HTML because the rich text control offers the RTF output result.

1)You can use this article to create an advanced rich text box: RicherTextBox

2)To convert the RTF result, you can use the
"SautinSoft.RtfToHtml"
. For the trial version you can convert over 30000 words Sniff | :^)
C#
<pre> private string GetHtmlText(string strRtfText)
        {            
            if (string.IsNullOrEmpty(strRtfText)) return "";

            string result = "";

            #region Version SautinSoft

            SautinSoft.RtfToHtml r = new SautinSoft.RtfToHtml();
            //this property is necessary only for registered version
            //r.Serial = "XXXXXXXXXXXXX";

            //specify some options
            r.OutputFormat = SautinSoft.RtfToHtml.eOutputFormat.HTML_5;// SautinSoft.eOutputFormat.XHTML_10;
            r.Encoding = SautinSoft.RtfToHtml.eEncoding.UTF_8;// SautinSoft.eEncoding.UTF_8;

            //specify image options
            r.ImageStyle.ImageFolder = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\TempFiles";      //this folder must exist
            r.ImageStyle.ImageSubFolder = "webs";   //this folder will be created by the component
            r.ImageStyle.ImageFileName = "picture"; //template name for images
            r.ImageStyle.IncludeImageInHtml = true;//false - save images on HDD, true - save images inside HTML


            result = r.ConvertString(strRtfText);

            #endregion

            return result;
        }


GeneralRe: html editor Pin
MemberDotNetting2-Mar-12 9:27
MemberDotNetting2-Mar-12 9:27 
GeneralRe: html editor Pin
BillWoodruff3-Mar-12 23:32
professionalBillWoodruff3-Mar-12 23:32 
GeneralRe: html editor Pin
Montasser Ben Ouhida4-Mar-12 22:35
Montasser Ben Ouhida4-Mar-12 22:35 
Questionarchitecture MVC Pin
MemberDotNetting2-Mar-12 2:06
MemberDotNetting2-Mar-12 2:06 
AnswerRe: architecture MVC Pin
Richard MacCutchan2-Mar-12 2:22
mveRichard MacCutchan2-Mar-12 2:22 
GeneralRe: architecture MVC Pin
MemberDotNetting2-Mar-12 2:36
MemberDotNetting2-Mar-12 2:36 
AnswerRe: architecture MVC Pin
Not Active2-Mar-12 2:25
mentorNot Active2-Mar-12 2:25 
GeneralRe: architecture MVC Pin
Pete O'Hanlon2-Mar-12 4:01
mvePete O'Hanlon2-Mar-12 4:01 
GeneralRe: architecture MVC Pin
Not Active2-Mar-12 5:51
mentorNot Active2-Mar-12 5:51 
AnswerRe: architecture MVC Pin
Pete O'Hanlon2-Mar-12 3:24
mvePete O'Hanlon2-Mar-12 3:24 
GeneralRe: architecture MVC Pin
MemberDotNetting2-Mar-12 3:41
MemberDotNetting2-Mar-12 3:41 
QuestionDataTable and DataSet? Pin
murali_utr1-Mar-12 17:32
murali_utr1-Mar-12 17:32 
SuggestionRe: DataTable and DataSet? Pin
V.1-Mar-12 20:33
professionalV.1-Mar-12 20:33 
AnswerRe: DataTable and DataSet? Pin
V.1-Mar-12 20:41
professionalV.1-Mar-12 20:41 
AnswerRe: DataTable and DataSet? Pin
satalaj2-Mar-12 5:18
satalaj2-Mar-12 5:18 
AnswerRe: DataTable and DataSet? Pin
Rahul Rajat Singh3-Mar-12 0:43
professionalRahul Rajat Singh3-Mar-12 0:43 
QuestionHow to know application exit in Console started by Process.Start("cmd.exe")) Pin
gshen1-Mar-12 12:28
gshen1-Mar-12 12:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.