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

Post your Gambas programming questions here.
Post Reply
AndyGable
Posts: 359
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

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

Post 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?
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

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

Post 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 158 times
Post Reply