Full Version: Report To Pdf Doesn't Work
UtterAccess Forums > MicrosoftŪ Access > Access Reports
Hi I use the following code to save my repport to PDF, when i use it to save the repport to SNP it works.
Can somebody tell me what I'm doeing wrong ....
DoCmd.OutputTo acOutputReport, "FactuurOverzicht_Kwartaal_Omzet", "PDFFormat(*.pdf)", "c:\test\test.pdf", False, "", 0, acExportQualityPrint
Doug Steele
I believe your format indicator is missing a space:
DoCmd.OutputTo acOutputReport, "FactuurOverzicht_Kwartaal_Omzet", "PDFFormat (*.pdf)", "c:\test\test.pdf", False, "", 0, acExportQualityPrint

To minimize the risk of this occuring, it may be better to use the intrinsic named constants:
DoCmd.OutputTo acOutputReport, "FactuurOverzicht_Kwartaal_Omzet", acFormatPDF, "c:\test\test.pdf", False, "", 0, acExportQualityPrint

If that doesn't resolve the issue, please indicate the exact nature of the problem you're encountering.
Hi Doug,
Thanks for the feedback, it seems to work now <
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.