A
Ameliacat
Using Access 2007, I am trying to write a procedure to step through a
recordset of names and output a report in PDF format with relevant
information for each name.
Printing to a report with DoCmd.OpenReport works okay, but printing to PDF
generates an error message.
DoCmd.OutputTo objectType:=acOutputReport, ObjectName:=strRptName,
OutputFormat:=acFormatPDF, OutputFile:=strPDFFileName, AutoStart:=True,
OutputQuality:=acExportQualityPrint
Error 2501 The OutputTo action was canceled.
I could not find this error message on the Microsoft Support website.
What can I do to fix this?
Thanks.
recordset of names and output a report in PDF format with relevant
information for each name.
Printing to a report with DoCmd.OpenReport works okay, but printing to PDF
generates an error message.
DoCmd.OutputTo objectType:=acOutputReport, ObjectName:=strRptName,
OutputFormat:=acFormatPDF, OutputFile:=strPDFFileName, AutoStart:=True,
OutputQuality:=acExportQualityPrint
Error 2501 The OutputTo action was canceled.
I could not find this error message on the Microsoft Support website.
What can I do to fix this?
Thanks.