I am trying to use Interop.Excell to save an Excel workbook as a PDF file. I use VS2008 and Office2007, and downloaded and installed SaveAsPDFandXPS.exe from Microsoft. This allowed me to save the Word document in pdf format using the following code: object frmt = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatPDF; wrd.ActiveDocument.SaveAs (ref dest, ref frmt, ref unknown, ref unknown, ... Pretty cool expet for the whole Interop stuff.
In any case, I was unsatisfied with finding a parallel in Interop.Excell for Word.WdSaveFormat.wdFormatPDF. Workbook.SaveAs accepts Interop.Excel.XlFileFormat, but there is no option for the PDF format. Has anyone done this or have experience in this field?
user76690
source share