I have tested the scenario and have managed to reproduce the same issue at my side. Unfortunately, the WORDSNET-3163 (Support CSS styles on table, tr, td and th nodes on import) does not solve the table’s style ‘border-collapse: collapse’ issue.
For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9462. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
I have now tried to avoid the issue by manually correcting the tables afterwards (as I know I always want the tables with collapsed borders) by setting the CellSpacing to -1. Visually everything looks ok but when I check the table properties I find the attached value.
The CellSpacing is not disabled and it’s value has been set to -0.04cm. Trying to disable this checkbox Word will give me an exception that the value has to be between 0 and 5.6 cm. When I clear the value AND disable the checkbox the layout changes slightly to exactly what I want as a result.
Setting the value to 0 in Aspose OR in Word itself also gives me wrong results so I would like to be able to just disable the CellSpacing but apparently that setting is not available?
Thanks for your inquiry. Please set the value of table’s cell spacing/padding to 0.0 as shown in following code example. Hope this helps you. Please let us know if you have any more queries.
Thanks for your inquiry. I have tested the scenario and have manged to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9494. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.
As a workaround, please use cellpadding and cellspacing properties of table tag as shown below in your htm. I have attached the input and output document with this post for your kind reference.
Your latest solution indeed provides me with the exact solution I need. When I open up Word and check the settings, the “allow space between cells” checkbox also is unchecked. Apparently it IS possible for Aspose to manipulate this checkbox so it would be nice to expose this feature to the developers :).
Thank you for the great support, I can continue developping our application for a future purchase now!
If the changes to the CSS parsing would be pushed into a release I can remove these extra conditions/parameters again.
Nickman1987:
Hi,
Apparently it IS possible for Aspose to manipulate this checkbox so it would be nice to expose this feature to the developers :).
I have logged this feature request as WORDSNET-9498 in our issue tracking system. You will be notified via this forum thread once this feature is available.