I am converting docx byte array to html export. During export ,chunk data added at the end of html.
In Table columns word wrap not happenning. I have attache exported html and docx file.
Implemented code:
byte[] docx = System.IO.File.ReadAllBytes(sFileName);
byte[] docBytes = null;
Document doc = null;
using (MemoryStream outStream = new MemoryStream(docx))
{
doc = new Document(outStream);
outStream.Position = 0;
sStrcontent = null;
switch (Format)
{
case "HTML":
Aspose.Words.Saving.HtmlSaveOptions options = new Aspose.Words.Saving.HtmlSaveOptions(SaveFormat.Html);
options.ExportImagesAsBase64 = true;
options.ExportHeadersFootersMode = Aspose.Words.Saving.ExportHeadersFootersMode.None;
doc.Save(outStream, options);
break;
}
docBytes = outStream.ToArray();
}
UTF8Encoding utfEncoding = new UTF8Encoding();
if (docBytes.Length > 0)
{
sStrcontent = utfEncoding.GetString(docBytes);
}