Article View: borland.public.cppbuilder.nativeapi
Article #15387Re: How to write Raw Data to Printer??
From: Bob Gonder
Date: Tue, 08 Jul 2003 18:13
Date: Tue, 08 Jul 2003 18:13
28 lines
2230 bytes
2230 bytes
"mehendis" wrote: >I would like to write raw strings to printer, i can do it with >Benedikt Hochstrasser's component TRawPrinter.But there is a >problem with turkish characters.I cannot print �,�,�,�,� >correctly (I'm not sure if you can see them correctly too) >How can i print them, can you help please? Did you send the command string to set your printer to use the Turkish Character set? Each printer manufacturer uses a different method for setting things. Check with the printer maker for the proper command strings. Epson has them on the web somewhere, probably the others do too. If you have the printer using the correct character set, and you think the problem is with TRawPrinter, then you can write your own version using... OpenPrinter( PortName, &hPrn, NULL ); DocInfo1.pDocName = DocName; DocInfo1.pOutputFile = PortName; DocInfo1.pDatatype = "RAW"; StartDocPrinter( hPrn, 1, (LPBYTE)&DocInfo1); StartPagePrinter(hPrn); WritePrinter( hPrn, Buffer, NumBytes, &BytesWritten); EndPagePrinter(hPrn); EndDocPrinter(hPrn); ClosePrinter(hPrn);
Technical Details
Message-ID:
<3n1mgvkng7khd68dm5ltpdrpnk8voc010m@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f0ac3a4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,6f6a62a357f5d203 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-08 11:40:29 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to write Raw Data to Printer?? Date: Tue, 08 Jul 2003 11:13:37 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <3n1mgvkng7khd68dm5ltpdrpnk8voc010m@4ax.com> References: <3f0ac3a4@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 67.31.165.235 X-Trace: newsgroups.borland.com 1057688001 67.31.165.235 (8 Jul 2003 11:13:21 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail