Free Support Forum - aspose.com

Regarding formatting - from doc to html

Please refer the code i said below. I am displaying the word doc to html in the browser. It displays perfectly but the spaces inbetween the paragraphs seen in the word document is not getting reflected in the browser. Instead the the spaces are taken away while viewing in the browser. Anybody please help to display the word doc as it is seen.

Stream inMS = new MemoryStream(binaryData.Length);
inMS.Write(binaryData, 0, binaryData.Length);
inMS.Position = 0;
Document inDoc = new Document(inMS);
MemoryStream outMS = new MemoryStream();
inDoc.Save(outMS, SaveFormat.Html);
outMS.Position = 0;
StreamReader reader = new StreamReader(outMS);
ltlTest.Text = reader.ReadToEnd(); //Reading the content to a literal control
reader.Close();
outMS.Close();
inMS.Close();

Hi

This question is answered in http://www.aspose.com/Community/Forums/thread/98467.aspx

Best regards.