Set Table Cell format

Hi


I currently constructing some code to build Tables using a Word template…

I am able to use a table Cell and store this as a template for formatting other cells, but how do I create a new table cell using this original cell as template for formatting…

As far as I can see I cannot set the formatting property of a cell object ?

Thanks in advance

Found a way.


Cell.Clone(false)

But is it possible to set only the formatting.
Hi Allan,

Thanks for your inquiry. The Cell.Clone method does not lose the formatting of cell. Please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

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

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.