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

Post

Posted
Rating:
#1 (In Topic #802)
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’
Hi everyone,

I am trying to work this function out in Gambas (https://reference.epso…/index.php?content_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?
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
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.

Attachment
Online now: No Back to the top
1 guest and 0 members have just viewed this.