Free Support Forum - aspose.com

Aspose.Word : How to set style (Word 2007 format)

Hi Team,


How to set style to Word 2007 while creating document object?

See attachment

Thanks and Regards,
Nakul
Hi Nakul,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we had already logged this feature request as WORDSNET-3556 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

Hi Nakul,


As a a work around for the time being you can embed an empty DOCX document with your application and when you want to create a template using Word 2007 styles extract this as a stream and load it into a new Document object.

Thanks,

Hi Adam,


Thanks for reply,

We are already achieving this using blank word document with specified style as base document for generation.

But this is resulting in few bugs, like author is initialized incorrectly when we send document to browser. It is showing base document creator name.

Thanks and Regards,
Nakul

Hi Nakul,


Thanks for this additional information.

You can always change the properties of the template programmatically using Aspose.Words.

Hopefully this helps solve the problem.

Thanks,