How to adjust margins

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have a report (using VS.NET built in CR) that is used to print mailing
labels. Because of variations in printers I am trying to offer an option to
adjust the top/bottom and left/right margins in increments of 0.1" from 0 to
plus or minus 0.5" but I cannot get any change to take place on the printed
output. I take the user's adjustment input and set new values accordingly
(for an adjustment of "Up 0.3 in" I set variables for the new top and bottom
margins to 0.2" and 0.8" respectively) and then I multiply those values by
1440 (twips/in) and apply the margins to the report as shown here:

myMargins.topMargin = valtm * 1440
myMargins.bottomMargin = valbm * 1440
myMargins.leftMargin = vallm * 1440
myMargins.rightMargin = valrm * 1440
ActiveReport.PrintOptions.ApplyPageMargins(myMargins)

but it does not seem to have any effect? What am I doing wrong here?

Wayne


.



Relevant Pages

  • Re: Top Line of Field Missing In Report
    ... I have a problem with printing a report, which is the data from a single ... I have Layout Set-up Views set to 'Form View'; the Layout Set-up Printing ... The 0cm margins are almost certainly your problem. ... The bottom margin often needs to be a little bigger on inkjet printers. ...
    (comp.databases.filemaker)
  • Re: Page Out Of Margin
    ... That is because the secondary user's printers don't support the minimum ... report margins and the controls to larger margin settings as the default. ...
    (microsoft.public.access.reports)
  • Re: Report Width Is Larger Than Paper Width
    ... margins equal to 0 caused your problem. ... printers cannot print to (usually, about a quarter of an inch plus or ... When you made the margins 0, I'm thinking you made the report as ... so it gave you the error message. ...
    (microsoft.public.vb.general.discussion)
  • Re: basic invoiceing question
    ... To me a report is a report and an invoice is an invoice ... a 8 1/2 X 11 sheet. ... margins of the report, you're changing the size of the space that's ...
    (microsoft.public.access.reports)
  • Re: basic invoiceing question
    ... To me a report is a report and an invoice is an invoice ... report margins to 8.5x5.5 - that will give you *one* invoice per sheet. ...
    (microsoft.public.access.reports)