🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: More Printing Help Needed

#15266
From: Anthony
Date: Mon, 14 Jul 2003 19:13
34 lines
2264 bytes
Hey that was a neat idea but unfortuneately it doesn't work.  I get proper
width but no pagination.  It looks like I was printing without regard to the
label separations (which I was).

Doesn't this code give me the correct HDC?

Printer()->PrinterIndex=selected_printer; // not default printer
width = GetDeviceCaps(Printer()->Handle, PHYSICALWIDTH);     // page size x
in pixels

It prints to the correct printer...

Anthony


"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:bgg4hvsnj87lvkvu85oh0oq6i29kginmam@4ax.com...
> "Anthony" <awhitesell@attbi.com> wrote:
>
> >The NewPage() was something I tried to get the printer to not feed 11
inches
>
> Try it without either NewPage or EndDoc (until all done with all
> labels).  Just print labels, no EndPage, No EndDoc, just print until
> you are done. Then EndPage and EndDoc.
>
> >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?
>
> Use the correct HDC?
>
>
Technical Details
Message-ID: <3f130272@newsgroups.borland.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-mail
References: <3f0e1961$1@newsgroups.borland.com> <3f0ea18e$1@newsgroups.borland.com> <3f0f1830@newsgroups.borland.com> <3f11be9b@newsgroups.borland.com> <02h3hv021dm4mireqbhnndpd2tra9r9874@4ax.com> <3f11d845@newsgroups.borland.com> <bgg4hvsnj87lvkvu85oh0oq6i29kginmam@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-14 12:40:25 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> <3f11d845@newsgroups.borland.com> <bgg4hvsnj87lvkvu85oh0oq6i29kginmam@4ax.com>
Subject: Re: More Printing Help Needed
Date: Mon, 14 Jul 2003 15:13:34 -0400
Lines: 36
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: <3f130272@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058210418 24.128.134.183 (14 Jul 2003 12:20:18 -0700)
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