Losing my Page Setup Margin settings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some reports in my database that I've set special margins. But it
seems that sometimes when I do a Print Preview I lose my margin settings and
it goes back to the defaults and I have to keep resetting them. What's
happening???
 
I don't know why you keep losing the settings, but to make them stick you
may want to set them in code.

Example:
Private Sub Report_Open(Cancel As Integer)
With Me.Printer
.TopMargin = 1440
.BottomMargin = 1440
.LeftMargin = 1440
.RightMargin = 1440
End With
End Sub

The value is in Twips (1440 twips = 1")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top