I have Word document with fixed table width. After exporting to HTML the width of this table is different comapring to html generated by MS Word app.
Here is a sample project:
TestApp.zip (462.4 KB)
Steps to reproduce the problem:
- Open project in Visual Studio and run it
- Choose a destination folder and press the button
- In the destination folder you have 3 html files (generated with different ExportHeadersFootersMode value):
- All.html
- None.html
- RelativeOnly.html
Here is a file generated by MS Word:
Word.html.zip (5.0 KB)
See that table width in MS Word version is fixed and because of this we see a scrollbar. In Aspose version (the best result we have in RelativeOnly.html) the width of this table is not fixed (so we don’t see a scroll bar and text is wrapped). See the differences:
difference.png (152.8 KB)
If you need more info, please let me know
@ManMasterDevelopment Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSNET-24548. We will investigate MS Word behavior and let you know once the issue is resolved or we have more information for you.
By the way, the problem occurs not because Aspose.Words improperly exports table or cell width. MS Word and Aspose.Words behaviors are different because MS Word writes nowrap
attribute in tables cells, and Aspose.Words does not.
I’m following up on an issue reported a while ago, which remains unresolved and is still reproducible.
Could you please provide an update on the current status? Also, could you confirm if there are plans to address this issue in the near future?
Thank you for your assistance.
@mmdevelopment Unfortunately, currently the issue is not scheduled for development. We plan to implement the “save documents to HTML as MS Word does” approach and we postponing this issue until we start working on that task. Please accept our apologies for your inconvenience.