I am trying to create *.pdf files from an Excel workbook using the following C# statement:
wb.PrintOut(1, wb.Sheets.Count, 1, false, "PDFCreator", true, false, FileName);
where wb is a Workbook using Microsoft.Office.Interop.E
This results in a "damaged" pdf file - see attached file for error message.
What would be the solution?