Mik Mak
asked on
Access report - pdf differs from direct print
I'm struggling with a label report in Access - A4, 2-column, 105mm x 74mm, no margins. Everything line up nicely when printed directly - when using the built-in PDF export, it's like some margins are Applied and everything is no long in its place when printed from the pdf - I've done numerous Little adjustments to try and correct it, but with no luck so far. Please advice :) It's the same result when run from another system.
DoCmd.OutputTo acOutputReport, rpt, "PDF Format (*.pdf)", strPDFTmp, False
ASKER
That would be disappointing as using the PDF "printer" one would assumme it was like the paper print-out :)
The labels are sent via email to customers for printing onsite
The labels are sent via email to customers for printing onsite
There are several free PDF printers out there. Perhaps try using a different one and see if you have different results.
ASKER
It's the Office built-in pdf conversion I use
For the Report involved, have you tried varying the "FitToPage" setting to see if that has an effect on the output PDF?
»bp
»bp
ASKER
Hi Bill, yes I have, and no it doesn't :)
It's the Office built-in pdf conversion I useSure, but you can try printing directly to a PDF printer instead:
'/ first capture the current printer:
Dim pnt As Printer
Set pnt = Application.Printer
'/ now set the default printer to your PDF printer and print the report:
Application.Printer = Application.Printers("Your
DoCmd.OpenReport "YourReport"
'/ now reset the default printer:
Application.Printer = pnt
ASKER
Good idea Scott, but I've just tried it, and theres no major difference in the result unfortunately
Have you tried with a different PDF printer?
What, exactly, is the trouble with the PDF output?
What, exactly, is the trouble with the PDF output?
ASKER
It's been tried with CutePDF which is on the customer RDS, and "PDF reDirect Pro v2" which is on my local test system.
Even though the report page is defined with A4, 2-column, 105mm x 74mm, no margins - when generating the pdf, the top/bottom margins change, so that the print is not positioned correct vertically/column-wise - ie the top margin on each label on the page gets lower the further down you get on the page
Even though the report page is defined with A4, 2-column, 105mm x 74mm, no margins - when generating the pdf, the top/bottom margins change, so that the print is not positioned correct vertically/column-wise - ie the top margin on each label on the page gets lower the further down you get on the page
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
By the way, what's the reason for printing labels to PDF?