Custom table styles do not copy when using .Clone()

Hi,

I have a word doc with custom styles on the tables. When I clone the word doc and save as a new doc, the custom table styles are still there, but all values have been lost. Other custom styles I created for text are copied across nicely.

I have included a word doc with table styles. To view styles in Word 2007, which is what I’m using, select the table then select the ‘Design’ tab which will have now appeared. If you hover your cursor over the first table style it should say ‘myCustomTableStyle’.

Thanks

Hello,
Thank you for your request.
Unfortunately I was unable to reproduce your problem.
I used the following code:

Document doc = new Document("X:\\custom+table+styles+clone+test.docx");
Document doc2 = doc.Clone();
doc2.Save("X:\\out.docx", SaveFormat.Docx);

You are probably using an old version of our product. The latest version you can download from here.

Hi,

I upgraded my version of Aspose Words to 10.0.0.0 and all is working beautifully.

Thank-you