🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to write Raw Data to Printer??

#15391
From: mehendis
Date: Tue, 08 Jul 2003 22:52
38 lines
2451 bytes
Thank you for your reply.I realized that i should send escape
sequence characters to select turkish mode but i can't find
it in epson site.I can't access to their technical support 
e-mails.So what are the sequences for Epson Fx-1170???


Bob Gonder <notbg@notmindspring.invalid> wrote:
>"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: <3f0b4b3f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f0ac3a4@newsgroups.borland.com> <3n1mgvkng7khd68dm5ltpdrpnk8voc010m@4ax.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 16:01:59 PST
From: "mehendis" <mehendis@hotmail.com>
Sender: "mehendis" <mehendis@hotmail.com>
Reply-To: "mehendis" <mehendis@hotmail.com>
Subject: Re: How to write Raw Data to Printer??
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 217.131.5.153 217.131.5.153    
X-Forwarded-For: 217.131.91.212
References: <3f0ac3a4@newsgroups.borland.com> <3n1mgvkng7khd68dm5ltpdrpnk8voc010m@4ax.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f0b4b3f$1@newsgroups.borland.com>
Date: 8 Jul 2003 15:52:47 -0700
X-Trace: newsgroups.borland.com 1057704767 207.105.83.65 (8 Jul 2003 15:52:47 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail