I'm building an intranet reporting tool that creates reports and saves them as word documents.
It does this by pasting chunks of html into an empty word document.
The problem is that the html loses it's formatting in word as there is no longer a stylesheet to reference.
Is there any way of defining the styles in the word document?
It does this by pasting chunks of html into an empty word document.
The problem is that the html loses it's formatting in word as there is no longer a stylesheet to reference.
Is there any way of defining the styles in the word document?