Shady Level: VB Guru

 Registered: 08-07-2002 Posts: 305
|
Printing in the Center of a page
I need to know if it is possible (and I think it is) if you can print a form in the middle of a page.
For instance, this sort of procedure should be possible:-
MyWidth=Form1.Width
MyHeight=Form1.Height
Printer.currentX= ((PageWidth-MyWidth)/2)
Printer.currentY=((Pagewidth-Myheight)/2)
Form1.PrintForm
Printer.EndDoc
So all I really want here is a little tidying, y'know correct syntax and all that jazz!
Gonna have a go myself, but if one of you guys know how to do this it will save me some time, Cheers.
Shouldn't take you guys long!!
Shady
[Edited by Shady on 27-06-2003 at 03:37 PM GMT]
[Edited by Shady on 27-06-2003 at 03:42 PM GMT]
____________________________
I don't wanna die... but I ain't keen on livin' either
|