Expert: Igor Date: 3/7/2005 Subject: set margins for a page
Question Dear Igor
I have created an inventory report in Access 2003
When I print this form somehow the margins for the page change. Could you help me with a code that set the top, bottom, left and right margin when I run my report.
Thanks in advance for your help and time.
Best regards,
Dennis
Answer for example
Public Sub SetMarginsToDefault(ByVal strName As String)
Dim PrtMipString As str_PRTMIP
Dim PM As type_PRTMIP
Dim rpt As Report
' Open the report.
DoCmd.OpenReport strName, acDesign
Set rpt = Reports(strName)
PrtMipString.strRGB = rpt.PrtMip
LSet PM = PrtMipString