OutputTo pdf?

HelpTheNewbie

New member
Local time
Yesterday, 17:55
Joined
Feb 26, 2007
Messages
7
I am running VBA code attached to a button on a form. Among other things the button imports and Excel file and then asks if the user would like to view a report of the imported data. I would like to allow this to be exported to PDF format, but can't quite seem to get the syntax or something. Here is what I have:

DoCmd.OpenReport "RemittanceReport", acPreview
DoCmd.OutputTo cOutputReport, "RemittanceReport", "*.pdf", "C:\Example.pdf"

I get an error saying "The format in which you are attempting to output the current object is not available." I would greatly appreciate any help.
 
Okay. I have the full version of Adobe. How can I do what this one user suggests?

"set that printer as the special printer for that report (and save it in design view)"

Thanks so much for your help!
 

Users who are viewing this thread

Back
Top Bottom