Free Support Forum -

Retrieving Table Style with Word API


in Word 2007 one can choose between several table styles to determine the formatting of a table (e.g. the “Light Shading” table style). Is this also possible with the Apose Word API to access and set these styles?
If I try to get the style by using doc.getStyles().get(“Light Shading”); null is returned.

Thanks a lot for your help!!!



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I cannot reproduce the problem on my side using the latest version of Aspose.Words for Java (4.0.2). I use the following code for testing:

// Open the document.

Document doc = new Document("C:\\Temp\\in.docx");

Style style = doc.getStyles().get("Light Shading");


Best regards,

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Unfortunately, there is no way to set Table Styles using Aspose.Words. Your request has been linked to the appropriate issue. You will be notified as soon as this feature is available.

Best regards,

The issues you have found earlier (filed as WORDSNET-581) have been fixed in this .NET update and in this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.