|
| [WB18]Printing to Dot Matrix |
| Iniciado por guest, 02,mar. 2015 12:11 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 02,marzo 2015 - 12:11 |
Hi
I have to print to a pre-printed form on a dot matrix printer but although the file displays correctly on the screen it just prints a lot of ^$%t.
I am using CourierNew in the report.
If I print from a Word document using CourierNew then it prints the details ok.
What am I doing wrong?
Thanks in advance.
Ericus Steyn |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,marzo 2015 - 15:30 |
| Is it a serial connection? If so did you set up the parameters correctly? (sParamter) |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,marzo 2015 - 15:04 |
Hi Eric In order to print to dot matrix correctly using a report , The printer should be configured with the generic text only driver and report should work for latin characters correctly. Otherwise in the driver of the generic printer you should check your options regarding code page.
If you want complete control then the way for matrix printer is to use code.
Using fopen, friteline, fclose
Regards/Nikos [code:wl]
[/ // in place of "LPT1:" could also be used the unc shared name \\server\matrix res= fOpen("LPT1:", foCreateIfNotExist+foAdd+foReadWrite+foAnsi) IF ErrorOccurred THEN Info("Printer error !") GOTO exitproc //Close() END fWrite(res,Charact(27)+Charact(Asc("@"))) fwriteline(res,"") fwriteline(res,"") fwriteline(res," "+Invonum+" "+datetostring(dt,"dd/mm/yyyy")) code] |
| |
| |
| | | |
|
| | | | |
| | |
|