html editor
-
how can I insert an html editor in a windows forms or wpf thank you in advance
-
how can I insert an html editor in a windows forms or wpf thank you in advance
See my answer below.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
how can I insert an html editor in a windows forms or wpf thank you in advance
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 :^)
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; }
-
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 :^)
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; }
I will try thank you, thank you
-
See my answer below.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
Richard MacCutchan wrote:
See my answer below.
Did you intend to leave out an answer here ? thanks, Bill
"Every two days we create as much information as we did from the dawn of civilization up until 2003". Eric Schmidt of Google.
-
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 :^)
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; }
fyi: SautinSoft RTF=>HTML full version which can handle > 30k words is a US $239 component, on SautinSoft's web-site. Has the OP searched here on CP for RTF to HTML conversion ? On StackOverFlow, on Google, for other free controls ? best, Bill
"Every two days we create as much information as we did from the dawn of civilization up until 2003". Eric Schmidt of Google.
-
Richard MacCutchan wrote:
See my answer below.
Did you intend to leave out an answer here ? thanks, Bill
"Every two days we create as much information as we did from the dawn of civilization up until 2003". Eric Schmidt of Google.
No, I was referring to my answer to OP's earlier question below this one.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
fyi: SautinSoft RTF=>HTML full version which can handle > 30k words is a US $239 component, on SautinSoft's web-site. Has the OP searched here on CP for RTF to HTML conversion ? On StackOverFlow, on Google, for other free controls ? best, Bill
"Every two days we create as much information as we did from the dawn of civilization up until 2003". Eric Schmidt of Google.
Hi all, I found an article contains an other solution: Zeta HTML Edit Control[^] enjoy :)