🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetDeviceCaps not working with all printers.

#13798
From: Bob Reeves
Date: Sat, 13 Sep 2003 23:47
10 lines
1386 bytes
Thanks Bob,

Maybe someone can tell me what I am doing wrong. Basically I load the
printer names into a string list and get the index number by comparing
printer names to the list.

Printer()->PrinterIndex = listItemNumber.
pRes = GetDeviceCaps(Printer()->Handle, LOGPIXELSY);

Pretty basic but GetDeviceCaps() fails on some printers.
Technical Details
Message-ID: <3f63ab80@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.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f6307be$1@newsgroups.borland.com> <3ti6mvopr70gvqksnpvqnmaongfrhu8fdc@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,90fc2fd2df76ffd6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-13 16:46:35 PST
Reply-To: "Bob Reeves" <bob@somethinxtra.com>
From: "Bob Reeves" <bob@somethinxtra.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f6307be$1@newsgroups.borland.com> <3ti6mvopr70gvqksnpvqnmaongfrhu8fdc@4ax.com>
Subject: Re: GetDeviceCaps not working with all printers.
Date: Sat, 13 Sep 2003 18:47:26 -0500
Lines: 12
Organization: Somethin'Xtra
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 216.192.87.16
Message-ID: <3f63ab80@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063496576 216.192.87.16 (13 Sep 2003 16:42:56 -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.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail