Hi
The problem I am facing is to take a Word Document, insert a new 1st page (which will be another Word Document with a single page), and save the new version as a PDF.
I have found a solution using VS 2005 and Office automation, by programmatically opening Word 2007, using the Range.InsertFile method to insert the new document, and then using the new WdSaveFormat.wdFormatPDF to save as a PDF.
However, this solution would not be ideal seeing as the application is a server side component which is unattended, and this goes against what Microsoft advises for Office automation.
Would the same functionality be possible with VSTO?
Unfortunately for me Im using Word 2007 / VS 2005 - all of the VSTO samples seem to be for Word 2003 and/or VS 2003.
The problem I am facing is to take a Word Document, insert a new 1st page (which will be another Word Document with a single page), and save the new version as a PDF.
I have found a solution using VS 2005 and Office automation, by programmatically opening Word 2007, using the Range.InsertFile method to insert the new document, and then using the new WdSaveFormat.wdFormatPDF to save as a PDF.
However, this solution would not be ideal seeing as the application is a server side component which is unattended, and this goes against what Microsoft advises for Office automation.
Would the same functionality be possible with VSTO?
Unfortunately for me Im using Word 2007 / VS 2005 - all of the VSTO samples seem to be for Word 2003 and/or VS 2003.