I’m having this trouble after printing the first copy of a document with my Dot Printer.
The first document is printed ok (the paper is loaded and is printed)
If i want to print again (that document or another) my printer takes the paper, loads it, but not print the document.
And again for a second time.
At third time it prints properly.
The issue is myApp related.
Is there a command to ‘clear’ the cache or something else to fix it?
Here’s my code.
g = p.ShowPrinterDialog
If g <> Nil Then
Var X, Y As Integer
Var Inch As Double = 2.54
Var DPI_X As Integer = p.MaxHorizontalResolution // Get te Printer Resolution
Var DPI_Y As Integer = p.MaxHorizontalResolution // Get te Printer Resolution
g.FontName = “Times New Roman”
g.FontSize = 11
X = (DPI_X * (1.5-0.4) / 2.54)
Y = (DPI_Y * (2.1-0.4) / 2.54)
g.DrawString(test.value, X, Y)