Not sure if these is the right place for this but, I am doing some research for a proposal to a client.
Can the functionality of the plugin ie save office docs to PDF be done programmatically
Visual Studio Tools for Office
Yep - you need the plugin of course. Get it at: http://www.microsoft.com/downloads/details.aspx familyid=f1fc413c-6d89-4f15-991b-63b07ba5f2e5&displaylang=en
Here is a link to the documentation for the method you need to use: http://msdn2.microsoft.com/en-us/library/bb238907.aspx
Here is an example for Excel:public void SaveAsPDF()
// an error is thrown if there isn't anything in the
// workbook to export
I wrote a class library that automates Excel2007: fills an excel file with data from database, runs macros and eventually exports to PDF. The code is called from a COM+ application that runs under ¡°Myself¡± user that is not logged on the computer.
paramIncludeDocProps, paramIgnorePrintAreas, paramFromPage,
The code returns ¡°Exception from HRESULT: 0x800A03EC¡± error.
If I¡¯m logging via Terminal Services as ¡°MySelf¡±, the code runs fine.
I suspect that there is no (default ) printer installed for tha user until the user loggs on but I don¡¯t know how I can load it.
Is there is any way to work around the problem