realbasic-nug
[Top] [All Lists]

Re: Print Margins Problem

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Print Margins Problem
From: Roger Clary <roger@classonesoftware.com>
Date: Sun, 31 Aug 2008 18:42:07 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <356003A1-97CD-4030-A7EE-D7F2EB2092DF@michaelsmanias.com>
References: <356003A1-97CD-4030-A7EE-D7F2EB2092DF@michaelsmanias.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

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>


<Prev in Thread] Current Thread [Next in Thread>