Hi All
I wan't to create a PDF document automatically from Access, and I have tried
to use the way Keri Hardwick explains on:
http://www.mvps.org/access/reports/rpt0011.htm
But when the code reaches:
DoCmd.OpenReport "YourReportName", acViewNormal
in the code below, the following run time error appears:
run time error 2202
you must install a printer before you design, print or preview
What am I suppose to do to prevent this?
ChangeToAcrobat
ChangePdfFileName "Name of pdf file including .pdf"
DoCmd.OpenReport "YourReportName", acViewNormal
ResetDefaultPrinterThanks in advance