borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (printing rotated text)Next Topic (Printing Forms with VB.net) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Printing in the Center of a page
Poster Message
Shady
Level: VB Guru


Registered: 08-07-2002
Posts: 305

icon 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

27-06-2003 at 03:36 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : Printing in the Center of a page
Previous Topic (printing rotated text)Next Topic (Printing Forms with VB.net) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder