I have a report written in MS Word .doc format, 40+ pages. Based on user input I have to change some lines and print it to PDF format. I am on windows hosting server, that means asp.net and c# language. Therefor I cannot use Word application or printer drivers.
Basically I have two ideas how to get the PDF format.. - to save this .doc to .xml so I could use it as a template, before going on server. I can then access it, modify it after the user's input and then I need to figure out a way to get Word XML file to PDF. - to save it as HTML document, to be able to use it as a template. Then I can access and modify it, and try to iTextSharp it to PDF. Although it's a rather simple report with few images and a few pages of text, iTextSharp has a lot of problems with it, so he just prints the pdf file with 0 bytes, even after I cleaned and simplified the whole html code.
Since the second solution is a little tricky because of the footers and the page numbers that this .doc report has, I guess I would need to go back to the first one.
I am aware of the related posts like: http://stackoverflow.com/questions/159744/converting-ms-word-documents-to-pdf-in-asp-net or http://stackoverflow.com/questions/85404/generating-a-pdf-document-based-on-a-microsoft-word-template but they don't seem to provide much help.
Does anyone have any ideas besides commercial products (from which I have tried Winnovative's library which seemed to work ok)?