We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Convert to Html document

Thread ID:

Created:

Updated:

Platform:

Replies:

94856 Jun 6,2010 08:02 AM UTC Jun 8,2010 12:01 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: DocIO
chagit gudesblat
Asked On June 6, 2010 08:02 AM UTC

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.: aaa@gmail.com -> com.gmail@aaa

How can I resolve these problems?


Rajendran [Syncfusion]
Replied On 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


chagit gudesblat
Replied On June 8, 2010 06:05 AM UTC

Hi,

Thank you for answer.

Regarding picture disappearance:
I attached sample.

Regards
Chagit.



ConvertDocxToHtml_2bc7c4d3.rar

Rajendran [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;