Full Version: Report To Pdf Doesn't Work
UtterAccess Discussion Forums > Microsoft® Access > Access Reports
tomhendrickx
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
Greetz,
Tom
Doug Steele
I believe your format indicator is missing a space:
!--c1-->
CODE
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:
CODE
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.
tomhendrickx
Hi Doug,
Thanks for the feedback, it seems to work now <
Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.