Punchinello
Programmer
I've added a print button to a data entry screen that let's a user select a printer and print a copy of the completed form complete with boxes around text and other simple line borders and such. I should preface this question with the fact that I have done EXTENSIVE work in Delphi doing all sorts of printing stuff but I am new to VB6 and, thus, the questions:
1. I've chosen to use TWIPS as my scale of choice because I believe that it corresponds to the printed inch on every printer despite the printer's DPI resolution - always 1440 inch - laser, matrix, etc. Is this true?
2. In order to print with, let's say, a 1/2" margin, I need to know if the printer (like a laser) has an unprintable area and, if so, subtract it from the intended margin size. I can calculate vertical and horizontal unprintable areas like so...
Top + Bottom = Printer.Height - Printer.ScaleHeight
Left + Right = Printer.Width - Printer.ScaleWidth
...but is it safe to simply divide these results by 2 to determine top and left unprintable areas? or is there a function that more directly yields those measurements?
I'm all ears.
1. I've chosen to use TWIPS as my scale of choice because I believe that it corresponds to the printed inch on every printer despite the printer's DPI resolution - always 1440 inch - laser, matrix, etc. Is this true?
2. In order to print with, let's say, a 1/2" margin, I need to know if the printer (like a laser) has an unprintable area and, if so, subtract it from the intended margin size. I can calculate vertical and horizontal unprintable areas like so...
Top + Bottom = Printer.Height - Printer.ScaleHeight
Left + Right = Printer.Width - Printer.ScaleWidth
...but is it safe to simply divide these results by 2 to determine top and left unprintable areas? or is there a function that more directly yields those measurements?
![[bigears] [bigears] [bigears]](/data/assets/smilies/bigears.gif)