🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15250

Re: More Printing Help Needed

#15250
From: Anthony
Date: Sun, 13 Jul 2003 22:01
49 lines
3199 bytes
The NewPage() was something I tried to get the printer to not feed 11 inches
between printing adjacent labels.  I need to print on continuous feed
address labels of various sizes.  Bubble jet labels are subject to the
adverse effects of moisture (ie. they smear) and there is not access to a
laser printer, therefore dot matrix is the solution.  I have to use the
custom paper size, I have not found standard selectable sizes for labels of
these sizes.

Correct or not, debugging has shown that GetDeviceCaps retrieves the current
page size of the DEFAULT printer.  Is there a way to get the same
information for the selected printer?

In the meantime, I will look into DEVMODE.

Anthony


"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:02h3hv021dm4mireqbhnndpd2tra9r9874@4ax.com...
> "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: <3f11d845@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f0e1961$1@newsgroups.borland.com> <3f0ea18e$1@newsgroups.borland.com> <3f0f1830@newsgroups.borland.com> <3f11be9b@newsgroups.borland.com> <02h3hv021dm4mireqbhnndpd2tra9r9874@4ax.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 15:09:37 PST
From: "Anthony" <awhitesell@attbi.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f0e1961$1@newsgroups.borland.com> <3f0ea18e$1@newsgroups.borland.com> <3f0f1830@newsgroups.borland.com> <3f11be9b@newsgroups.borland.com> <02h3hv021dm4mireqbhnndpd2tra9r9874@4ax.com>
Subject: Re: More Printing Help Needed
Date: Sun, 13 Jul 2003 18:01:23 -0400
Lines: 51
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.128.134.183
Message-ID: <3f11d845@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058134085 24.128.134.183 (13 Jul 2003 15:08:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail