On Aug 31, 2008, at 5:39 PM, Michael D Mays wrote:
I am trying to print a document with the minimum margins for a
printer. As I understand it if I do something like:
Dim g as Graphics
g= OpenPrinterDialog()
If g <> Nil then
g.DrawRect 0,0,612,792
End if
I should print a rectangle missing its right and bottom sides with
the top and left sides lengths being the maximum width and height
for the printer and paper size I choose in the Print Dialog for
printer. This doesn't happen. All the margins are much larger (at
least 2X) what they should be.
When I look at g.height and g.width they show the correct height
and width for the printer/paper size.
What am I doing wrong?
To further complicate the issue, your results will vary drastically
between Mac and Win. This is the best guide I have found in trying to
work out the printing issues:
<http://www.aaronballman.com/programming/REALbasic/ProperPrinting.php>
Roger M. Clary
Class One Software
http://www.classonesoftware.com
roger@classonesoftware.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|