Excel automation: PDF export causes “Printer setup” popup
I am developing an application for automatic Excel to PDF generation. Every now and then (and without any apparent cause, the following popup comes up while the program runs: Print driver host for 32bit applications stopped working. and, shortly after, this one: Printer setup What, if anything, do I need to do here? My application is not overly complex. The error always (100%) happens on this line: _application.ActiveWorkbook.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, pdfTemplatePath, Excel.XlFixedFormatQuality.xlQualityStandard, _, _, 1, pdfPrintAreaEnd); where the variables in