opopanax666
Registered User.
- Local time
- Yesterday, 17:06
- Joined
- Nov 2, 2006
- Messages
- 42
[SOLVED] Print and save hidden report with dynamic filter
Hi everyone,
I need to generate a report with a dynamic filter, print the report without preview, and save the report as .pdf.
The following code works, but doesn't do all of the above:
Hi everyone,
I need to generate a report with a dynamic filter, print the report without preview, and save the report as .pdf.
The following code works, but doesn't do all of the above:
Code:
DoCmd.OpenReport "rptMagazijnbon", acViewPreview, , MyFilter, acHidden
DoCmd.OutputTo acOutputReport, "rptMagazijnbon", acFormatPDF, MyPath & MyFilename, True
DoCmd.Close acReport, "rptMagazijnbon"
Last edited: