Is the following a bug in Aspose or is there another explanation for this behaviour in aspose?
While looking at a table (the attached tabellertestdok.docx) in documentexplorer your can see the count of cellitems. Visually you can see them in the attached documentexplorer.gif.
row 1 has 3 cells
row 2 has 6 cells
row 3 has 5 cells
row 4 has 5 cells
row 5 has 6 cells
If I use the following code to save the file in html and look at the cells:
//loop through every table, every row and every cell
MemoryStream htmlStream = new MemoryStream();
//doc.SaveOptions.HtmlExportImagesFolder = Path.GetTempPath();
doc.SaveOptions.HtmlExportImagesFolder = billedpath;
//Specify HtmlExportImageSaving event
doc.SaveOptions.HtmlExportImageSaving += new ExportImageSavingEventHandler(SaveOptions_HtmlExportImageSaving);
doc.Save(htmlStream, SaveFormat.Html);
XmlDocument xmlDoc2 = new XmlDocument();
htmlStream.Position = 0;
xmlDoc2.Load(htmlStream);
The result is the following:
row 1 has 3 cells
row 2 has 5 cells
row 3 has 4 cells
row 4 has 3 cells
row 5 has 6 cells
We use aspose to transform word files into custom xml files and with this behaviour in the Document class it makes it difficult to work with.
Regards
tero