Hello!
Please look at two attached files.File InputWord.docx created by Aspose with Office 2010(the same issue happens with Office 2007).When saving file in Html format(see code example) the
table is shrinking.
Then open and save that file with
Office Word 2007 or 2010 (file InputWord_SavedAs.docx). Then save it in html format (run code).
Table is formatted properly.
----
string fileName = GetPathFile() + "InputWord.docx";
string HTMLPath = GetPathFile() + "OutputHtml.html";
// string fileName = GetPathFile() + "InputWord_SavedAs.docx";
// string HTMLPath = GetPathFile() + "OutputHtml_SavedAs.html";
Aspose.Words.Document doc = new Aspose.Words.Document(fileName);
doc.Save(HTMLPath, new Aspose.Words.Saving.HtmlSaveOptions
{
ExportXhtmlTransitional = true,
TableWidthOutputMode = Aspose.Words.Saving.HtmlElementSizeOutputMode.All,
SaveFormat = Aspose.Words.SaveFormat.Html
});
Could you please help us with this?