Search found 363 matches
- Tuesday 20th February 2024 12:15am
- Forum: General
- Topic: Talk to a Driver in Linux
- Replies: 0
- Views: 344
Talk to a Driver in Linux
Hi everyone Does anyone know how I can talk to a Driver with in Linux from Gambas? I include the Driver that I need to talk to (it also includes Some examples) Any help would be most appreciated as this and one other items is stopping me from supporting the new PoS terminals. My Machine Type is PT62...
- Monday 19th February 2024 11:06pm
- Forum: General
- Topic: Gift Receipt Printing - advise needed
- Replies: 10
- Views: 1535
Re: Gift Receipt Printing - advise needed
y Dim f As File f = Open sFilePath For Write Print #f, "some text~" f.close I do this to print so yes I can open the file no problem i was just stuck on how i would remove the Values and remove everything after the |L|33 Items Sold Total Due 짙7.18~ line (I would need to remove the 짙7.18 va...
- Monday 19th February 2024 8:56pm
- Forum: General
- Topic: Gift Receipt Printing - advise needed
- Replies: 10
- Views: 1535
Re: Gift Receipt Printing - advise needed
|Logo7 |C|2Where Quality Meets Value~ |C|1OPEN MONDAY TO THURSDAY 8AM to 8PM~ |C|1FRIDAY & SATURDAY 8AM to 9PM~ |C|1SUNDAYS 10AM to 4PM~ |L|1컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴~ |L|1CADBURY'S CREAM EGG 40G 짙0.60 A~ |L|1FARM FRESH LSE BRAEBURN CL1 12 짙2.89 Z~ |L|1LOOSE PINK LADY APPLES CL1 1KG 짙3.69 Z~ ...
- Monday 19th February 2024 5:44pm
- Forum: General
- Topic: Gift Receipt Printing - advise needed
- Replies: 10
- Views: 1535
Re: Gift Receipt Printing - advise needed
The receipt is saved in a txt file.
I can when I'm at the computer post a example file if that helps
I can when I'm at the computer post a example file if that helps
- Monday 19th February 2024 2:30am
- Forum: General
- Topic: Gift Receipt Printing - advise needed
- Replies: 10
- Views: 1535
Gift Receipt Printing - advise needed
Hi Everyone, I have a slight problem that I am working on at the moment and i would like some input as to how to handle this I am trying to print a Receipt for a customer that does not have any prices on it (as a Gift Receipt) below is the example recipit file that is created by my software Ready to...
- Sunday 28th January 2024 11:50pm
- Forum: General
- Topic: [Sloved] Help with getting a image to fit onto a button
- Replies: 12
- Views: 2290
Re: Help with getting a image to fit onto a button
Thank you to everyone who replied to this problem the code that BruceSteers supplied works beautifully and the images look great
Thank you BruceSteers you have gotten me out of some tight issues in the past with this project.
Thank you BruceSteers you have gotten me out of some tight issues in the past with this project.
- Friday 26th January 2024 9:54pm
- Forum: General
- Topic: [Sloved] Help with getting a image to fit onto a button
- Replies: 12
- Views: 2290
[Sloved] Help with getting a image to fit onto a button
Hi Everyone I am using the following code to load a image from the database onto a key Public Function ImageFromString(ImageString As String, ImageFile As Button) If ImageString <> "" Then Global.pc = Picture.FromString(FromBase64(ImageString)) ImageFile.Picture = Global.pc End If End Does...
- Friday 19th January 2024 8:29pm
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 2252
Re: Convert image to byte array - what am I doing wrong.
Can anyone convert Python code into Gambas Code? def bitmap(self, data, length=0, density=0): if length == 0: length = len(data) if 0 < length < 1023: # length_lower = int(length & ord('\xff')).to_bytes() # length_higher = int((length & ord('\x03')<<8)>>8).to_bytes() # self.write(const.ESC_s...
- Thursday 18th January 2024 8:37pm
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 2252
Re: Convert image to byte array - what am I doing wrong.
This is the commands I am trying to follow (this is BASIC) https://algpos.co.uk/gambas/ESC_PoSCommand.PNG I have my image file called StoreLogo.bmp so i would need to work out how to convert the image so I can print it on my printer I KNOW I can upload the image to the Printers memory but the Tools ...
- Thursday 18th January 2024 7:52pm
- Forum: General
- Topic: Convert image to byte array - what am I doing wrong.
- Replies: 10
- Views: 2252
Re: Convert image to byte array - what am I doing wrong.
However, I would take this smoother path.... Public Sub Form_Open() Dim path As String Dim im As Image Dim bb As Byte[] path = "/path/of/image/file" im = Image.load(path) ' ...I get the coveted byte array: bb = Byte[].FromString(im.ToString(File.Ext(path), 100)) ' Test...... PictureBox1.I...