PDF export predefined margins? (1 Viewer)

mamradzelvy

Member
Local time
Today, 09:00
Joined
Apr 14, 2020
Messages
145
Hi,
i'm trying to export via vba to pdf, but i can't find a way to save print margins to be a default value, which would transfer to other machines as well so that it would always output the same file on any pc.
Code:
DoCmd.OutputTo acOutputForm, "FormTEST", acFormatPDF, strPath & "\Report_" & Format(Date, "dd_mm_yyyy") & ".pdf"
this is the code i use to do it, but the output is not centered the way id like it to be, id need circa 21mm left margin.
any tips on how to handle this?
 

Minty

AWF VIP
Local time
Today, 08:00
Joined
Jul 26, 2013
Messages
10,366
You can only do this level of formatting in a report where you can set page size and margins as you need to.

This type of output to action isn't really designed for high quality printed material.
 

Users who are viewing this thread

Top Bottom