Article View: borland.public.cppbuilder.nativeapi
Article #15248Re: More Printing Help Needed
From: Bob Gonder
Date: Sun, 13 Jul 2003 20:58
Date: Sun, 13 Jul 2003 20:58
27 lines
2345 bytes
2345 bytes
"A Whitesell" <awhitesell@attbi.com> wrote: >I have run in to a different problem on my way to trying to NewPage() >between labels. Is there a particular reason you need to NewPage between labels? You should be able to just send enough line feeds to move to the next label (if you don't fill the label that is). >This will print to the non default printer with the page size of the default >printer. >What is going on here? And how the @#!$! do I correct it? GetDeviceCaps gets the capabilities for the printer, and I think, has nothing to do with how Windows is going to print. The capabilities are the largest paper it can print (or the size of the paper selected/detected by the printer). To set/select a different paper size, you need to querry/set the DEVMODE. Somewhere in there, when you querry, the paper size flag (something like DM_PAPERSIZE ? ) will be set if the driver supports that option. Not all printers/drivers support non-standard paper sizes. I doubt if any dot-matrix printers support it. I know the HP3 Laserjet does not. Other options are to keep track of which label you are on so you can print at label-relative positions. Then NewPage when your label count is full.
Technical Details
Message-ID:
<02h3hv021dm4mireqbhnndpd2tra9r9874@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f0e1961$1@newsgroups.borland.com> <3f0ea18e$1@newsgroups.borland.com> <3f0f1830@newsgroups.borland.com> <3f11be9b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,82770ce634808d90 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-13 14:09:28 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: More Printing Help Needed Date: Sun, 13 Jul 2003 13:58:55 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <02h3hv021dm4mireqbhnndpd2tra9r9874@4ax.com> References: <3f0e1961$1@newsgroups.borland.com> <3f0ea18e$1@newsgroups.borland.com> <3f0f1830@newsgroups.borland.com> <3f11be9b@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.166.52 X-Trace: newsgroups.borland.com 1058129918 67.31.166.52 (13 Jul 2003 13:58:38 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail