We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

backColor in nested tables in Words Template

I wish to use a template with nested tables. When using <<backColor>> in a table, the entire cell assumes the assigned color. But if there is a nested table in the cell, then only the text area assumes the assigned color. I’m looking to have the entire parent cell take the assigned color. Template example attached.

Can this be done in templates?

Please advise.


CalendarTableTest.zip (10.1 KB)


Please also ZIP and attach the following resources here for testing:

  • Aspose.Words 20.4 generated actual output DOCX file showing the undesired behavior
  • A standalone simple Console Application (source code without compilation errors) that helps us to reproduce your current problem on our end and attach it here for testing. Please do not include Aspose.Words DLL files in it to reduce the file size.

As soon as you get these pieces of information ready, we will start investigation into your scenario and provide you more information. Thanks for your cooperation.

Attached.CalendarTableTest-full.zip (30.3 KB)


Thanks for the additional information. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-20293. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.


After further investigation, it turns out to be an expected behavior rather than a bug. To make the LINQ Reporting Engine fill the whole cell rather than a piece of text between opening and closing backColor tags, it is needed to put the closing backColor tag after the nested table, so opening and closing backColor tags can capture the whole cell. We have modified the template to show this (please check CalendarTableTestModified.zip (10.1 KB)). Hope, this helps.

1 Like

Thanks - that has solved the issue.