print a form in landscape?

falko

New member
Joined
Jan 10, 2011
Messages
1
Programming Experience
Beginner
sir how can i print a form in landscape? i'm using VB.net 2k8 Express Edition

i've searched high and low for those code,, but i can't seem to find one...

btw,, i'm using Printform command

here's my code:

[Button 1]
On error go to error1
Printform1.print()
Exit Sub

error1
MsgBox("Error")
Resume Next

i tried the orientation thing and landscape thingy, but it didn't work, does it have to do with the command i'm using? cause i want to print the whole form
 
VB.NET:
Me.PrintForm1.PrinterSettings.DefaultPageSettings.Landscape = True
 
Back
Top