Re: Export to PDF Macro is not working as expected
1. Install Bullzip PDF Printer.
2. Use below macro. I've bolded and highlighted the fields you should fill in. If you don't want to send an email, just exclude calling the function "zendDagrapportREPORTNAME" in the REPORTGENERATOR sub:
vReport = "RP02" 'Set report ID
vName = "REPORTNAME" 'Name of output pdf
ActiveDocument.PrintReport(vReport), "Bullzip PDF Printer", false 'Printreport