Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing in VB...

Status
Not open for further replies.

tommy19

Programmer
Aug 23, 2001
49
US
Hi all,
I am trying to print invoices from a vb application, however, my scales seem to change from printer to printer. Is there a way to force the scale to be the same no matter what printer I print the form to?

Thanks in advance!

Tom
 
If you stick using Twips for your scaling you shouldn't have any problems as they are resolution-independant.
 
... you also have the TwipsPerPixelX & TwipsPerPixelY properties that will tell you the printer resolution.

And if you didn't know, although the Height & Width properties will give you the dimensions of the paper, use .ScaleLeft, .ScaleTop, .ScaleHeight & .ScaleWidth to find out the printable area.
 
And then there's the Fonts.....

Whatever.. if you aren't positioning all of the objects yourself and run time, and/or are positioning to tight, you are going to have problems.

Standards, standards. Where are you?
 
That was supposed to read:
"...if you aren't positioning all of the objects yourself at run time..."

And Norris68, that was supposed to read:
.....the [curse]fonts!
 
Pedant!
... and I enclosed the curse in code tags so it wouldn't get converted - so there! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top