Print Preview with Landscape?

VB_Student

New member
Joined
Jun 28, 2004
Messages
4
Programming Experience
1-3
Hello,

Can anyone tell me how I can have a little more interactive print preview dialog? I need the ability to show the user how info in a dataset will appear if printed in LANDSCAPE. Then print that view.

Also, an added bonus would be able to print selected pages... but really not important.
 

techsivasham

New member
Joined
Aug 4, 2022
Messages
1
Programming Experience
10+
You're setting the DefaultPage setting for the printer. Try to set it for the document itself:

PrintDocument1.DefaultPageSettings.Landscape = True
PrintDocument1.Print()
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,742
Location
Sydney, Australia
Programming Experience
10+
You're setting the DefaultPage setting for the printer. Try to set it for the document itself:

PrintDocument1.DefaultPageSettings.Landscape = True
PrintDocument1.Print()
I hope the OP isn't still waiting for an answer after 18 years 😉 but you may still help someone else who finds this thread.
 
Top Bottom