Convert to Html document

Hi,

I use with DocIO for create new html document from Docx,
but I have some problems:

1. When the document is Right to Left, after saving it become to Left to Right.

2. When the document contain a picture, the picture is disappear after convert to html.

3. I have email address or phone in the document, and it show inverse. e.g.: [email protected] -> com.gmail@aaa

How can I resolve these problems?


3 Replies

RA Rajendran Syncfusion Team June 7, 2010 07:34 AM UTC

Hi Chagit,

Thank you for your interest in Syncfusion products.

Regarding Right to Left and email address in reverse order:
Currently we don’t support RTL (Right to Left) format in Doc to HTML conversion.
Regarding picture disappearance:
Please provide a sample to reproduce the issue to investigate further.

Please let us know if you have any other questions.

Regards
Rajendran



CG chagit gudesblat June 8, 2010 06:05 AM UTC

Hi,

Thank you for answer.

Regarding picture disappearance:
I attached sample.

Regards
Chagit.



ConvertDocxToHtml_2bc7c4d3.rar


RA Rajendran Syncfusion Team June 8, 2010 12:01 PM UTC

Hi Chagit,

Thank you for your update.

Regarding picture disappearance:
The image location is not properly mapped to the HTML file. Please refer the modified sample attached below. The converted file and the images should be in same folder to be properly mapped.

To map the image we have used the below code snippet in your code.
//Explicitly specify the Image Export Folder
newDocument.SaveOptions.HtmlExportImagesFolder = @".";

Please refer the code snippet in our online sample for further reference.

http://samples.syncfusion.com/ASPNET/8.2.0.18/Web/DocIO.Web/samples/3.5/Import%20and%20Export/DocToHTML/CS/DocToHTML.aspx?args=9

Code Snippet:
//Export the doc to HTML and save as .html file
string strHtml = Server.MapPath("doctohtml.html");
doc.SaveOptions.HtmlExportImagesFolder = this.Server.MapPath(string.Empty);

Please let us know if you have any other questions.

Regards
Rajendran




ConvertDocxToHtml_f86ffa6c.zip

Loader.
Up arrow icon