Page 1 of 1

Convert a image to a data statement so I can be printed

Posted: Monday 17th January 2022 12:00am
by AndyGable
Hi everyone,

I am trying to work this function out in Gambas (https://reference.epson-biz.com/modules ... ent_id=274)

It takes a data statement and prints it to a receipt printer

Is it possible to load the data statement at runtime or does it only work when the application is complied?

If it can be done does anyone have a example I can look at?

Re: Convert a image to a data statement so I can be printed

Posted: Monday 17th January 2022 4:03pm
by cogier
Is it possible to load the data statement at runtime or does it only work when the application is complied?

If it can be done does anyone have a example I can look at?
You can load data from a file at run time using the File.Load() command.

Have a look at the attached program. I have added a command to convert the Hex to decimal. You may need to change the Epson commands to decimal as well, then sent all the data to the printer. You could try their Windows program, Senddat.exe, under Wine and see if that works for you.
LoadData-0.0.1.tar.gz
(14.23 KiB) Downloaded 166 times