Article View: borland.public.cppbuilder.nativeapi
Article #3148Re: Does printer Escape PASSTHROUGH actually work?
From: Keith
Date: Tue, 22 Aug 2006 11:01
Date: Tue, 22 Aug 2006 11:01
28 lines
1596 bytes
1596 bytes
JD wrote: > Keith <kdopson@sbcglobal.net> wrote: > > > > [...] m_dcPrint = Prntr->Handle; > > There is a known issue with TPrinter and it's Handle not being > valid. Try setting the TPrinter's Index prior to the call to > GetPrinter. > > ~ JD It matters not. The source file for printers.pas shows the default setting is for index is -1, the default printer, in the constructor: constructor TPrinter.Create; begin inherited Create; FPrinterIndex := -1; end; In fact prior to the original post, I had the ineffective line in the source code, and I deleted that line Prntr->PrinterIndex=-1; just prior to posting. keith
Technical Details
Message-ID:
<44EAE410.FF92DF08@sbcglobal.net>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44EA7A75.C70EC63A@sbcglobal.net> <44eab866$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cd89a6d0cbcf8d4a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <44EAE410.FF92DF08@sbcglobal.net> Date: Tue, 22 Aug 2006 06:01:36 -0500 From: Keith <kdopson@sbcglobal.net> X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Does printer Escape PASSTHROUGH actually work? References: <44EA7A75.C70EC63A@sbcglobal.net> <44eab866$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.71.227.85 X-Trace: newsgroups.borland.com 1156244491 65.71.227.85 (22 Aug 2006 04:01:31 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail