By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,615 Members | 1,961 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,615 IT Pros & Developers. It's quick & easy.

problem in printing vb6 form as a Landscape Manner during Run time

P: 4
Helo Guys,
I wanna print VB6 form in a landscape manner without setting the form manually through Project File and then open the page setup and change the printer setting to landscape. I just wanna print form and all the controls labels and check boxes in a landscape manner.

A few days ago I posted this question but no one replied to me. Please help me in this regard. I would be thankful if anybody could help me in this regard.

Raza
Jan 17 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
try to use this
Expand|Select|Wrap|Line Numbers
  1. Printer.Orientation = 1
  2. '1 for portrait
  3. '2 for landscape
  4. Me.PrintForm
  5.  
Jan 17 '08 #2

P: 4
try to use this
Expand|Select|Wrap|Line Numbers
  1. Printer.Orientation = 1
  2. '1 for portrait
  3. '2 for landscape
  4. Me.PrintForm
  5.  
I already used this code but it couldnt work. I mean its true it didnt give me any error message but it didnt change the form to Landscape while printing.
Jan 18 '08 #3

QVeen72
Expert 100+
P: 1,445
Hi,

Which is the default Printer in your system...?
Not all printer drivers support Changing the Orientation..

Check This M$ Link


Regards
Veena
Jan 18 '08 #4

debasisdas
Expert 5K+
P: 8,127
I already used this code but it couldnt work. I mean its true it didnt give me any error message but it didnt change the form to Landscape while printing.
are you using the default printer for the printing job ?
Jan 18 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.