🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

More Printing Help Needed

#15243
From: A Whitesell
Date: Sun, 13 Jul 2003 20:11
40 lines
2215 bytes
I have run in to a different problem on my way to trying to NewPage()
between labels.  I am using GetDeviceCaps to get the page size, but it only
gets the page size of the default printer.

Code snippet:

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

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?

TIA.
Anthony

"A Whitesell" <awhitesell@attbi.com> wrote in message
news:3f0f1830@newsgroups.borland.com...
> No I haven't.  I thought of that earlier this morning and I will need to
> write a separate printing routine to do that.  Thank you for confirming
that
> the idea has the chance of working.  I will let the group know if it
works.
>
> Anthony
>
>
> "Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message
> news:3f0ea18e$1@newsgroups.borland.com...
> >
> >
> > It is not clear from your message do you tried to use NewPage()
> > instead EndDoc().
> >
> > Vladimir.
> >
>
>
Technical Details
Message-ID: <3f11be9b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.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>

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 13:40:28 PST
From: "A Whitesell" <awhitesell@attbi.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <3f0e1961$1@newsgroups.borland.com> <3f0ea18e$1@newsgroups.borland.com> <3f0f1830@newsgroups.borland.com>
Subject: More Printing Help Needed
Date: Sun, 13 Jul 2003 16:11:52 -0400
Lines: 42
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: <3f11be9b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058127515 24.128.134.183 (13 Jul 2003 13:18:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail