none
CHANGING TO TOp AND THE LEFT MARGIN FOR ONE DOCUMENT TO BE PRINTED

    Question

  • With 2000 version I did it with sendkey function, now with version 2007 I have used this bit of code with the on page event

    The pb is this peice of software is installed on diiferent configuration with differebt printers so to avoid having a printer set up for each configuration i used the sendkey function so now what to do ?

    Thank you

    www.atlogiq.org 

    Private Sub Report_Page()
    'set Mqrges
    Application.Printer.TopMargin = Topm
    Application.Printer.LeftMargin = Lefm
    Application.Printer.BottomMargin = Botm
    Application.Printer.RightMargin = Rigm
    'fin
    End Sub

    where Topm, LefMargin etc... are set with the value

    Can you tell me how to get the correct result

     

    Thursday, September 23, 2010 9:26 PM