Free Support Forum -

AW 9.1.0 / 10.1.0 : Rows with TableStart/TableEnd not removed when no data


License lic = new License();
Document doc = new Document(@"test.doc");
DataSet ds = new DataSet();

template :

row 1 : TableStart:TABLE4 ... TableEnd:Table4
row 2 : TableStart:TABLE5 ... TableEnd:Table5
row 3 : TableStart:TABLE6 ... TableEnd:Table6

data :

TABLE4 with 1 row
TABLE5 with 0 row
TABLE6 with 1 row

Test with Aspose.Words 9.1.0
row2 is removed => ok

Test With Aspose.Words 10.1.0
row2 is not removed => ko

files are attached

Is this a bug ? This is very important for us to keep the same behavior trough different version of Aspose Words . How could I modify my code to remove table rows when there is no data ?



Thanks for your request. I think in this case you should just specify RemoveEmptyRegions property. Please see the following link to learn more:

Best regards,

Hi Andrey, thank you for your quick help.

I didn't notice this change. Is there a documentation for each version of Aspose Words with this kind of information ? On each version I have to make many tests to be sur that generated doc files will be the same as in the previous version, and this kind of information is crucial for us.

Thanks again, Aspose support Team is really efficient ;)


Thanks for your request. Usually, all these changes are described in the release notes, and it will not take a lot of time and efforts to change your code and recompile your application. If you need assistance with updating your code, I will be glad to help you.

Best regards,