- Local time
- Today, 05:04
- Joined
- Sep 12, 2006
- Messages
- 15,983
OK - issues with outputting reports to pdf.
in A2003, I have used Stephen Lebans code, to output to a snapshot file, and then convert the snapshot to pdf, which has never let me down.
I am trying to use A2010 to do the same thing directly.
so this code fails every time
DoCmd.OutputTo acOutputReport, RptName, acformatpdf, documentpath
i tried a lot of things and finally found that replacing the constant with its text value also fails every time.
(although the constant acformatpdf DOES show "PDF Format (*.pdf)"
DoCmd.OutputTo acOutputReport, RptName, "PDF Format (*.pdf)", documentpath
i noticed that in Stephen Lebans code for snapshot he uses the definition ""SnapshotFormat(*.snp)"" (no spaces) and tried instead
DoCmd.OutputTo acOutputReport, RptName, "PDFFormat(*.pdf)", documentpath
which works most of the time, but occasionally fails. not sure if there are asynchronous timing issues at work?
Anyone know what is going on?
-----
the other thing is - the first way - snapshot, then pdf, always produces the correct fonts.
- using .outputto directly is not generating the fonts correctly either.
Has anyone seen these issues before?
in A2003, I have used Stephen Lebans code, to output to a snapshot file, and then convert the snapshot to pdf, which has never let me down.
I am trying to use A2010 to do the same thing directly.
so this code fails every time
DoCmd.OutputTo acOutputReport, RptName, acformatpdf, documentpath
i tried a lot of things and finally found that replacing the constant with its text value also fails every time.
(although the constant acformatpdf DOES show "PDF Format (*.pdf)"
DoCmd.OutputTo acOutputReport, RptName, "PDF Format (*.pdf)", documentpath
i noticed that in Stephen Lebans code for snapshot he uses the definition ""SnapshotFormat(*.snp)"" (no spaces) and tried instead
DoCmd.OutputTo acOutputReport, RptName, "PDFFormat(*.pdf)", documentpath
which works most of the time, but occasionally fails. not sure if there are asynchronous timing issues at work?
Anyone know what is going on?
-----
the other thing is - the first way - snapshot, then pdf, always produces the correct fonts.
- using .outputto directly is not generating the fonts correctly either.
Has anyone seen these issues before?