PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → print German Character to TM-T88IV
print German Character to TM-T88IV
Débuté par PLUSPOINT, 14 juin 2010 00:00 - 12 réponses
Posté le 14 juin 2010 - 00:00
Hi,
I want to print "LÖÄÖÖÄßÜSÜCHEN" to TM-T88IV receipt printer
regards,
Chandrahas
Posté le 14 juin 2010 - 00:00
I have been trying to print the german characters : LÖÄÖÖÄßÜSÜCHEN onto an EPSON TM88IV Receipt printer.
Loading the ANSI charcater set as follows :
fWrite(nFilNum,Charact(027) + Charact(0116) + Charact(050))
or
fWrite(nFilNum,Charact(027) + Charact(082) + Charact(050))
but the ANSI set gets converted to ASCII set and on the debug mode shows as follows :
fWrite(nFilNum,Charact(27) + Charact(116) + Charact(50))
or
fWrite(nFilNum,Charact(27) + Charact(82) + Charact(50))
I have also tried to use functions like : OEMTOANSI but no success.
How can I continue to print using the ANSI command set
Thanks and Regards
Chandra
Posté le 14 juin 2010 - 08:46
Hello
Maybe you can try with this on page 56.
On page 56 you have ESC codes to select your code page.
ESC R n
[Name] Select an international character set
[Format] ASCII ESC R n
Hex 1B 52 n
Decimal 27 82 n
Your Decimal is: 27+82+2
[url=http://ftp.perimatic.fr/documentations/Epson/TM-T88/TM-T88User.pdf][/url]
Posté le 14 juin 2010 - 08:47
hello,

look for the esc/pos epson reference guide and try to use :

esc R (Select an international character set) 2 ---> germany

or

esc t (Select character code table) choose the good one ( 0 to 19)

you use esc t sequence but with a wrong parameter ( 50 )


Sorry for my poor English

Ami calmant, J.P ;-)
Posté le 14 juin 2010 - 11:03
Assuming you are using the right codes to select the German codepage (and don;t have the docs right now) it could be the way you send it to the printer. Are you using a file?
We send commands like this to the printer, via the printerdriver. Works for all parallel, serial, usb and network printers.
bResult = iConfigure(sPrinter) // sPrinter is the Windows printer name
IF bResult THEN
iDestination(iPrinter)
sPrintCommand is string = Charact(27)+Charact(82)+Charact(50)
iEscape(sPrintCommand)
iEndPrinting()
END
You can also set the characterset in the init section of your report:
Posté le 14 juin 2010 - 16:00
Hi Arie,
No i m not using File, i m sending each line as follows:
//=============================
bResult is boolean
bResult = iConfigure(mBillPrimPort) // sPrinter is the Windows printer name
IF bResult THEN
iDestination(iPrinter)
sPrintCommand is string = Charact(27)+Charact(82)+Charact(50)
iEscape(sPrintCommand)
// Creates a 48-pica font
//iCreateFont(1, 48, iBold+iItalic, iRoman)
// Prints a text with this font
iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")

iPrint()

iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")

iPrint()

iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")

iPrint()
iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")
iPrint()

// Ends the print

iEndPrinting()
//=============================
I tried with ur code it is print slow on TM-T88IV Receipt printer.
is anything wrong i m doing for above code?
is there any other command to print fast on TM-T88IV Receipt printer.
Thanks and Regards
Chandra
Posté le 14 juin 2010 - 17:25
Hallo Chandra,
I think You must use the spezial fonts from Epson to print fast. I make the reports with the report editor from windev for EpsonPrinter without problems. Make the Epson to standard printer and start windev new and you can see the spezial fonts for epson.
Christoph
Posté le 14 juin 2010 - 17:49
Chandra,
What interface does your printer have - serial, parallel or usb?
I have a serial TM88 and use WD's serial open, write and close commands without any trouble and it prints very fast :spos:
Posté le 14 juin 2010 - 18:02
Hi Darren Farmer
i do use serial open, write and close commands and its is fast but it is not printing German character which i mentioned early.
my friend Arie had suggested to use
//===========================
iEscape(sPrintCommand)
// Prints a text with this font
iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")
iPrint()
//=====================
the above command is very slow.
pls help me to Print above German character on TM88 Receipt Printer.
i tried to change code page for German as chr(27) + chr(116) + chr(50)
but didnt work for TM88 but it is working for other printer like GPPrinter with code page as chr(27) + chr(116) + chr(25)
Posté le 14 juin 2010 - 18:20
Chandra,
like Christoph says, only the epson-built-in fonts are fast, like FontA11, FontA12 and so on. Other fonts are printed graphically, which is slow.
Try this:
iCreateFont(1, nPitch, iNormal, "FontA11", iBlack, 0)
iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")
Posté le 14 juin 2010 - 19:31
Hi Arie, Christoph, & All
Very Very Thanks it is working.
Special thanks to Arie & Christoph.

Thanks & Regards,
Chandra
Posté le 15 août 2017 - 13:51
Arie Mars a écrit :
Chandra,
like Christoph says, only the epson-built-in fonts are fast, like FontA11, FontA12 and so on. Other fonts are printed graphically, which is slow.
Try this:
iCreateFont(1, nPitch, iNormal, "FontA11", iBlack, 0)
iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")


Do you need to install somehow FontA11 font because it is not installed on \windows\font directory, or the driver will select this font automatically from printer ROM because it's missing?

I have same problem with Bixolon printer and even user manual and examples say that Bixolon driver will recognise FontA1x1 the printed font is always Windev default.

Does your example print directly to printer installed by Epson driver or "Generic/Text only" driver?
Membre enregistré
14 messages
Posté le 15 août 2017 - 18:46
Arie Mars a écrit :
Chandra,
like Christoph says, only the epson-built-in fonts are fast, like FontA11, FontA12 and so on. Other fonts are printed graphically, which is slow.
Try this:
iCreateFont(1, nPitch, iNormal, "FontA11", iBlack, 0)
iPrintWord(iFont(1) + "LÖÄÖÖÄßÜSÜCHEN")


I have the same problem with Bixolon printer and even user manual and examples say that Bixolon driver will recognise "FontA1x1" the printed font is always Windev default.

Even the Fonlist(fontPrinter) function return all Bixolon ROM fonts, the font is always Windev default.

Can you explain how you installed your printer driver or which driver you using for correct printing.

Tnx!