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
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