f



How to determine hardware printer margins in Mac OSX?

Hi, I am porting an application to the Mac that prints. I need to know what
margins the printer has, so that I can print right up to that line. In
windows I have used GetDeviceCaps to find out the margins of the user's
printer. How can I do this on the Mac? I am using realbasic, but posted to
the comp.sys.mac.programmer group as well, in case realbasic does not have
this capability and I will need to use something from the carbon library.
Thanks


0
John
11/27/2004 8:40:17 PM
comp.sys.mac.programmer.help 4653 articles. 2 followers. Post Follow

4 Replies
306 Views

Similar Articles

[PageSpeed] 12

In article <RC5qd.106780$5K2.43855@attbi_s03>,
 "John Smith 99382" <someone99382@microsoft.com> wrote:

> Hi, I am porting an application to the Mac that prints. I need to know what
> margins the printer has, so that I can print right up to that line. In
> windows I have used GetDeviceCaps to find out the margins of the user's
> printer. How can I do this on the Mac? I am using realbasic, but posted to
> the comp.sys.mac.programmer group as well, in case realbasic does not have
> this capability and I will need to use something from the carbon library.

On Macintosh, you ask the print system for the page rectangle and the
paper rectangle. The paper rectangle is the physical size of the paper,
and the page is the printable area.  

The user specifies which printer, or generic, on the Page Setup dialog
box.


The user is allowed to queue a print job on one printer, then drag it
to another printer, and if he does he deserves to get what he gets.

Read: <http://developer.apple.com/documentation/Carbon/Reference/Carbon_Spec_Porting/Carbon_Printing_Manager.html>

and

<http://developer.apple.com/documentation/Carbon/Reference/CarbonPrintingManager_Ref/cpmref_reference/function_group_3.html>
0
David
11/27/2004 9:22:48 PM
Thanks, that was exactly what I needed.


0
John
11/27/2004 9:31:10 PM
Well actually...would you happen to have a code snippet in realbasic that
returns the margins in inches (after the user selects the printer in the
dialog).

> Thanks, that was exactly what I needed.
>
>


0
John
11/27/2004 9:55:00 PM
The PrinterSetup class in the Language Reference has an example that shows
how to do this (stupid me). I will test it out and see if it returns the
hardware margins, or just the page size.

> Well actually...would you happen to have a code snippet in realbasic that
> returns the margins in inches (after the user selects the printer in the
> dialog).
>
> > Thanks, that was exactly what I needed.
> >
> >
>
>


0
Michael
11/28/2004 7:28:27 PM
Reply:

Similar Artilces:

Help! iSync mac to mac
Am I right in saying that with iSync, if you want to sync 2 macs together (address book, iCal etc.) the only way to do this is via a ..Mac account, even if those computers are sitting not 5 feet from each other, both Airport equipped? If this is the case, I've never heard anything so ridiculous. Is this just part of another apple scam to get more money out of us? Does anyone know if this is indeed the case, and can you recommend any other sync software out there? I'm setting up an iMac, eMac and powerbook g4 for a friend's office, all running OSX Panther, and you'd think basi...

No Mac Help in Mac Help?
When I go to Mac Help in Finder (latest version of OSX Tiger) I get nothing. The window pops up but it's blank. Click on the little house and the initial screen fills in but nothing beyond that. I had a simiar problem with Safari help some time back and someone suggested I remove a folder from Library/Caches, (com.apple.helpui or something similar) and that did the trick for Safari's help. I honestly don't recall if I've ever had the Mac Help or I've just never used it since this machine. The problem happens on or offline so I'm not sure where the Mac Help file re...

To Mac or not to Mac?
What ho, pre-pressers! Long time no post, or view, come to that. No doubt some of you will remember me as I see that many of same crowd are **STILL** here after all these years. Grettings to Aandi, Ted, Lee, Allen...well, to you all, not forgetting Mr Shagnasty, who I am gratified can still find something to say after all this time. Right, greetings over, down to brass tacks. My early retirement plan has sadly fallen through and I find myself back at the coal face possessed of some pretty antideluvian equipment with which to earn a crust for the Tree family. So I'm looking for **SE...

Mac to mac
I just remembered these groups and wondered if someone here could tell me whether what I'd like to do is possible. (NO ONE around here knows anything about Macs) I have a G4 that was the top of the line in 1998. It will die one of these days. It's currently running OS 9.2.2. Someone else(who now lives far away) installed the internal modem, SCSI for my scanner, and my floppy drive (so I didn't have to go through hundreds of them for the bits and pieces I might someday want again). I still have the floppies and a number of Zips, all of which this computer can read. Install...

When is a Mac not a Mac?
This was posted in a forum recently and I thought it brought up some very interesting points relating to the Eula. For reference: http://forum.insanelymac.com/index.php?showtopic=105546 ------ This question is related to licensing OS X on a machine. The EULA says it has to be an Apple computer, before the Apple License will apply, which means Apple will only support OS X on Apple machines. So, I'm wondering, when is a machine considered an Apple Mac, for the purposes of Licensing and recieving support? Say I buy a Mac from Apple. Then the hard drive fails, and I replace that with an ...

Help! I've Been Forced To Use A Mac, Online Help for Mac?
http://www.suggestafix.com/index.php?showtopic=33751 Help! I've Been Forced To Use A Mac, Online Help for Mac? Aug 29 2009, 12:23 PM Post #1 Group: Star Member Posts: 297 Joined: 31-May 06 Member No.: 14,025 Today, for a hopefully brief period of time, I'm being forced to use a Mac. Since these machines are incomprehensible, I need a simple piece of information*. I know this is heresy, but . . er . . is there anywhere on the Net where peeps answer questions without offering them the choice of (1) $15 (2) $25 or (3) $50 for the answer. ~ beau (but don't tell anyone I asked...

Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn
Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn 3 for Mac, MapleSoft Maple 11.01.303882 Pro for Mac, other Mac Stuff CDs, A to Z, updated 2007/10/15, and Win & Mac programs, 'WinMac', 'PC/ MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' please send e-mail to : ola 'AT' mail 'DOT' gr , ola3 'AT' mailbox 'DOT' gr ...

Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio P
Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn 3 for Mac, MapleSoft Maple 11.01.303882 Pro for Mac, other Mac Stuff CDs, A to Z, updated 2007/10/15, and Win & Mac programs, 'WinMac', 'PC/ MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' please send e-mail to : ola 'AT' mail 'DOT' gr , ola3 'AT' mailbox 'DOT' gr ...

Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn
Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn 3 for Mac, MapleSoft Maple 11.01.303882 Pro for Mac, other Mac Stuff CDs, A to Z, updated 2007/10/15, and Win & Mac programs, 'WinMac', 'PC/ MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' please send e-mail to : ola 'AT' mail 'DOT' gr , ola3 'AT' mailbox 'DOT...

Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio P #2
Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn 3 for Mac, MapleSoft Maple 11.01.303882 Pro for Mac, other Mac Stuff CDs, A to Z, updated 2007/10/15, and Win & Mac programs, 'WinMac', 'PC/ MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' please send e-mail to : ola 'AT' mail 'DOT' gr , ola3 'AT' mailbox 'DOT' gr ...

sharing printer on Mac with Mac/Windows
Hi. I have a new Mac G5 with a USB printer attached to it. I would like to print to this printer from other computers also, other Macs and Windows machines. I have: 1) Enabled Printer Sharing 2) Enabled Windows Sharing 3) In Print & Fax, selected Sharing and check marded this printer. According to Mac Help, this printer should automatically appear in print dialog boxes from any other computer on the subnet that can see it. Well, I think my laptop is on the same subnet but I cannot see it. Where exactly should I see it? There is a list of "Shared Printers" and also of "Bonjo...

Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULT
Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' -------------------------------------------------------- DFT Super Bundle for Apple Final Cut Pro, 4 CDs The DFT Super Bundle includes full versions of: 55mm, Digital Film Lab, Composite Suite, and zMatte. DFT Filter Bundle for Apple Final Cut Pro, 1 CD The DFT Filter Bundle includes full versions of: 55mm and ...

Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULT
Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' -------------------------------------------------------- DFT Super Bundle for Apple Final Cut Pro, 4 CDs The DFT Super Bundle includes full versions of: 55mm, Digital Film Lab, Composite Suite, and zMatte. DFT Filter Bundle for Apple Final Cut Pro, 1 CD The DFT Filter Bundle includes full versions of: 55mm and ...

2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTI
2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- Abvent Artlantis v4.5 Mac 1CD Abvent.PhotoCAD.v1.0.MacOSX ACD.Systems.Canvas.X.0.2.925.MacOSX Adobe.Acrobat.7.0.Pro.for.Mac.OS 1C...

2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTI #2
2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- Abvent Artlantis v4.5 Mac 1CD Abvent.PhotoCAD.v1.0.MacOSX ACD.Systems.Canvas.X.0.2.925.MacOSX Adobe.Acrobat.7.0.Pro.for.Mac.OS 1C...

Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULT #2
Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' -------------------------------------------------------- DFT Super Bundle for Apple Final Cut Pro, 4 CDs The DFT Super Bundle includes full versions of: 55mm, Digital Film Lab, Composite Suite, and zMatte. DFT Filter Bundle for Apple Final Cut Pro, 1 CD The DFT Filter Bundle includes full versions of: 55mm and ...

Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS',
Adobe.CS3.Web.Premium.Vol.MAC.OSX 1DVD, other Mac Stuff CDs, A to Z, updated 2007/April/28, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' -------------------------------------------------------- DFT Super Bundle for Apple Final Cut Pro, 4 CDs The DFT Super Bundle includes full versions of: 55mm, Digital Film Lab, Composite Suite, and zMatte. DFT Filter Bundle for Apple Final Cut Pro, 1 CD The DFT Filter Bundle includes full versions of: 55mm and ...

Some help on Mac hardware
Hello, I am a wall decor manufacture and do extensive "virtual framing". Meaning we scan images and then put frame and mat around the piece, extensively color correct and push to a high speed printer. The wait period comes in moving around these high-res files. My graphic designers are all mac trained from their colleges, but I need to make money, thus I need the fastest way possible to do my job. Any suggestions? What type of MAC do you think is good for this job? Thanks in advance. In article <1151439617.539233.255520@b68g2000cwa.googlegroups.com>, art@chicagorsvp.com ...

2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', '
2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- Abvent Artlantis v4.5 Mac 1CD Abvent.PhotoCAD.v1.0.MacOSX ACD.Systems.Canvas.X.0.2.925.MacOSX Adobe.Acrobat.7.0.Pro....

2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', '
2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- Abvent Artlantis v4.5 Mac 1CD Abvent.PhotoCAD.v1.0.MacOSX ACD.Systems.Canvas.X.0.2.925.MacOSX Adobe.Acrobat.7.0.Pro.for.Mac.OS 1C...

2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', '
2006/02/04 VectorWorks.V12.MAC.OSX 3CDs, other Mac Stuff CDs, A to Z, updated 04/Feb/2006, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' GARAGE SALES, buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, -------------------------------------------------------- Abvent Artlantis v4.5 Mac 1CD Abvent.PhotoCAD.v1.0.MacOSX ACD.Systems.Canvas.X.0.2.925.MacOSX Adobe.Acrobat.7.0.Pro....

Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, VIENNA INSTRUMENTS VIENNA SYMPHONIC LIBRARIES, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac
Microsoft Office 2008 for Mac, MacDrive 7.0.10, Apple Mac OSX Tiger 10.4.10 for Mac Intel, VIENNA INSTRUMENTS VIENNA SYMPHONIC LIBRARIES, Propellerheads.Reason.v4.0.HYBRID, Maya Unlimited 2008 for Mac, FXpansion GURU 1.1.280 for Mac, Roxio Popcorn 3 for Mac, MapleSoft Maple 11.01.303882 Pro for Mac, other Mac Stuff CDs, A to Z, updated 2007/10/15, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' please send e-mail to : ola 'AT' mail 'DOT...

It's a Mac, Mac, Mac World
I wonder how the Windows users would like my (ab)normal Microsoft-free world: My business: all Mac, no PCs. My dentist, family physician and urologist are all Mac. No PCs. Went to Sir Speedy today for more bus. cards and some binding: all Mac (no surprise there). My daughter's three new college room mates have emailed her. Two have PowerBooks and one has an eMac. (She has a G5 iMac.) I never even see a PC unless I am at the public library or a store using a Windows POS unit. It never was intentional. I don't scout a place to see what frickin' computer they use. Jus...

bmp-mac, mac and xmms-mac ports
Hello, I can't find these in the ports collections, so i've downloaded and compiled mac and xmms-mac successfully and have confirmed that they work on FreeBSD. I was looking for an APE (Monkey Audio) plug-in for XMMS in the ports collection but wasn't able to find one. I had a bit of trouble with compiling xmms-mac to start off with. The compilation would fail with the following: g++ -I/usr/X11R6/include -I/usr/X11R6/include/xmms -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include -s -O3 -Wall -pedantic -DBUILD_CROSS_PLATFOR...

Web resources about - How to determine hardware printer margins in Mac OSX? - comp.sys.mac.programmer.help

Five points determine a conic - Wikipedia, the free encyclopedia
In Euclidean, non-projective geometry , just as two (distinct) points determine a line (a degree-1 plane curve), five points determine a conic ...

SocialCode Studies Top 500 Facebook Pages To Determine Best Practices For Engagement
... provider SocialCode examined engagement with Facebook posts from the social network’s top 500 pages from Aug. 1 through Oct. 20 to determine, ...

Facebook uses random sampling to determine app ratings and avoid manipulation
With its new App Center , Facebook ranks applications by star ratings, but unlike Apple and Android’s app platforms, the social network relies ...

Twitter Blog: Let your Tweets determine the 2012 Sprite Slam Dunk champi
Twitter Blog Let your Tweets determine the 2012 Sprite Slam Dunk champion 3366100333679041124 Thursday, February 23, 2012 This Saturday, four ...

How does the NYT determine which articles have comments? - Quora
On the The New York Times website, some articles have comment sections, and others don't. It seems like in general higher profile articles have ...

How to determine what Herbs and Spices go best with what dishes - YouTube
Grandma Storn's Herb Wheel is the essential tool for cooking delicious, healthy meals using Herbs and Spices!

Spring, spin and swing: Five factors to determine the 2015 Ashes
Osman Samiuddin cites the state of English pitches and spin effectiveness as among his five factors that will decide the 2015 Ashes series.

Embattled destroyer project to determine fate of local shipbuilding
The Abbott government has announced a rejig of the troubled Air Warfare Destroyer project that will serve as a test case for the future of naval ...

NSW election: small parties will determine who will be Premier
In 2011, voters brought about the political evisceration of the ALP after 16 long years in government. We witnessed some of the biggest swings ...

NFL, San Francisco 49ers, Houston Texans: Jarryd Hayne’s key dates to determine NFL future, starting ...
JARRYD Hayne will take his first competitive snap against NFL opposition this Sunday at 10am (AEST) when the San Francisco 49ers take on the ...

Resources last updated: 2/20/2016 6:34:03 AM