Article View: borland.public.cppbuilder.nativeapi
Article #3161Re: Does printer Escape PASSTHROUGH actually work?
From: Keith
Date: Wed, 30 Aug 2006 13:23
Date: Wed, 30 Aug 2006 13:23
24 lines
1931 bytes
1931 bytes
> Any of you folks have an explanation why there is no printed output? > or, alternatively, any of you ever use the Escape to attempt to send > data, for instance, PCL-5 commands, to a HP laser printer? > > TIA > > keith For the schlep (er, hacker, i.e. programmer) who tries the above, look at this MSDN URL: http://support.microsoft.com/kb/138594/EN-US/ Use esc-E with caution in your raw transmissions to the printer if you use downloaded fonts or printer macros. Same with form feed cautions... the spooler may also send form feeds on page breaks (...may).. and your specific printer may, or may not, eject pages, depending on whether its raster actually contains printable data. Also note the value of DocInfo.pDatatype being set to 'RAW', which doesn't appear to be defined as such in BCB. Your best bet is 'probably' to use the printer's port as a file open/write/close. Unfortunately, you do not get the notifications of document print status that winspool provides through callback. keith
Technical Details
Message-ID:
<44F5916A.DF6F094F@sbcglobal.net>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.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>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: <44F5916A.DF6F094F@sbcglobal.net> Date: Wed, 30 Aug 2006 08:23:54 -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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.71.227.85 X-Trace: newsgroups.borland.com 1156944229 65.71.227.85 (30 Aug 2006 06:23:49 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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