🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TPrinter Problem

#15120
From: Anthony
Date: Wed, 16 Jul 2003 04:15
28 lines
2101 bytes
I have verified that PrinterIndex is changing because I can print to any
printer at will, but I cannot get the page information.  I think that this
should be noted if you are able to investigate this further.

Thank you,
Anthony

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f14c72b$1@newsgroups.borland.com...
>
> "Anthony" <endurokarter@yahoo.com> wrote in message
> news:3f148037@newsgroups.borland.com...
>
> > I was getting the wrong page sizes with:
> > (A)
> > Printers()->PrinterIndex=x;
> > width=GetDeviceCaps(Printers()->Handle, PHYSICALWIDTH);
>
> Did you verify that the PrinterIndex is actually changing correctly after
> you assign it?  TPrinter::Handle is dependant on the current PrinterIndex.
> If it is not actually being changed correctly, then it is conceivable that
> your code really is retreiving the information for the same printer each
> time regardless of what you are assigning PrinterIndex to each time.
>
>
> Gambit
>
>
Technical Details
Message-ID: <3f14d300$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f1460f3$1@newsgroups.borland.com> <3f14693d$1@newsgroups.borland.com> <3f1471c0$1@newsgroups.borland.com> <3f147649$1@newsgroups.borland.com> <3f148037@newsgroups.borland.com> <3f14c72b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d59131589fe63384
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-15 21:36:22 PST
From: "Anthony" <awhitesell@attbi.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f1460f3$1@newsgroups.borland.com> <3f14693d$1@newsgroups.borland.com> <3f1471c0$1@newsgroups.borland.com> <3f147649$1@newsgroups.borland.com> <3f148037@newsgroups.borland.com> <3f14c72b$1@newsgroups.borland.com>
Subject: Re: TPrinter Problem
Date: Wed, 16 Jul 2003 00:15:38 -0400
Lines: 30
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: <3f14d300$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058329344 24.128.134.183 (15 Jul 2003 21:22:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail