I am programmatically converting an existing HTML file that has been dynamically created to a MS Word document. I've ran into a situation where the MS Word Document object fails to process the HTML file if that file ends up being very large. I get the same result irrespective of my choice of programming language (I've tried converting from HTML to DOC in C++ and VBScript). I also see that even the Microsoft Word application chokes up while trying open this same file.
I thought of eliminating the task of dynamically generating a HTML file and instead write its contents into a *.doc file. But there's the issue of preserving previously defined formatting and layout.
Is anyone able to walkthrough additional options?