Good afternoon,
i have this fnction
Escape(Printer.Handle, PASSTHROUGH, 0, @BufferIn, @BufferOut);
This work fine, but if i use TTMSFNCPrinter how i can get it's handle ? in order to use the function above? (i need to reset the receipt printer before start printing)
Thank you for reply
Regards
Daniele
After some tries the above function works well and do it's job.
This function must be inserted at the beginning of
TMSFNCPrinter.OnDrawContent :=
procedure
begin
if PASSTHROUGHOK then
begin
// Reset Printer ....
Idx:=Escape(Printer.Handle, PASSTHROUGH, 0, @BufferIn, @BufferOut);
end;
.
.
.
End;
Thank you for all
Regards
Daniele