realbasic-nug
[Top] [All Lists]

Print Margins Problem

To: realbasic-nug@lists.realsoftware.com
Subject: Print Margins Problem
From: Michael D Mays <michael@michaelsmanias.com>
Date: Sun, 31 Aug 2008 16:39:30 -0500
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
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
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?

Mac OS 10.5.4; @.67GHz Intel Core Duo; RB 2008 3.1

Thanks,
Michael

_______________________________________________
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>