Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Printing to serial ticketprinter

$
0
0
Hello,

I have build a pos system that print tickets to a serial printer. It works fine.

I also have to print a E-Rport. It is a financial report. It is logger then most of the tichets.

The com port is well configured. The Z-report prints fine at my testplace.

At several clients there are wholes in the Z-Rapport. It means that there are for example 15 lines printed. Then there is a Gap of n lines. Then the rest of the report is printed. Several lines are not printed.

I've tried it with different buffersizes.

This is the code

PROCEDURE ZRapport()

nLijnen is int = TableCount(WIN_XRapport.TABLE_XRapport)
nRest is int = 0

OpenPoort()
TableSelectPlus(WIN_XRapport.TABLE_XRapport,TableCount(WIN_XRapport.TABLE_XRapport))
FOR nLus = 1 TO nLijnen
SWrite(Port_E,WIN_XRapport.TABLE_XRapport[nLus].COL_Text+cLineFeet)
END
sWrite(Port_E,cLineFeet4)

sWrite(Port_E, cCutter)
SluitPoort()

Extra question.
Is it always nescesarry to use sParameter().
When the port is correct configured, I think it is not nescesarry to use sParameter()

Thanks

Willy Hermans

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>