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 on custom size paper)Next Topic (MComm???) New Topic New Poll Post Reply
AndreaVB Forum : Printing : Printer.Height and Printer.Width refuse to change!
Poster Message
xenightmare
Level: Trainee

Registered: 08-07-2005
Posts: 1

icon Printer.Height and Printer.Width refuse to change!

i'm using vb 6 and win xp. basically, no matter what value i set to printer.height and printer.width makes any change. check out my code, i'm probly doing something real dumb:


Label1 = Printer.Width 'gives value of 12240
Printer.Width = 6 * 1440 '6 inch Width x 1440 twips per inch
Label2 = Printer.Width 'gives value of 12240


i've tried various values, not just 6 *1440; none work. the papersize value does hower change from 1 to 256, which makes sence, but neither the width nor the hieght budge.

any ideas on why this happens, and how to fix it?

thx

08-07-2005 at 07:58 PM
View Profile Send Email to User Show All Posts | Quote Reply
keviin6
Level: Trainee

Registered: 21-07-2005
Posts: 2
icon Re: Printer.Height and Printer.Width refuse to change!

hi,
   its important to check the kbdoc
http://support.microsoft.com/default.aspx?scid=kb;en-us;282474

1. with that article create a papersize of ur requirement
2. then assing that id to printer.papersize= obtained size
3. happy printing
else
feel free to mail me keviin6@gmail.com

21-07-2005 at 10:00 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : Printer.Height and Printer.Width refuse to change!
Previous Topic (printing on custom size paper)Next Topic (MComm???) 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