Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@ Say Image? 2

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
Is there a way to use the @ Say Image or something similar to that to print a picture to a Screen or Printer (Continues POS Printer)?

I am using the ??? command to print the receipt from our POS. I want to send our Logo too on it.

I remember seeing a command that supports printing/displaying graphics which is the @ Say...

Thanks in advance.

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Ali,

Dave has given you the correct answer.

However, be cautious about mixing @/SAY commands with ?? commands in the same ouptut. You could find that, after the @/SAY, subsequent output is not positioned where you would expect it.

By all means, give it a try, but you might have to switch to using @/SAY for the entire receipt.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thank you both. It works on teh screen however, it did not print the GIF/BMP image on the Generic / Text Only driver.

My second choise is to create a report that will run on a POS printer 40 Column (3" wide printer), however, the length is unknown, since it is a continuous printer.

any thoughts on creating that?

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Ali,

You say that it worked on the screen, but not on the printer. That suggests that you have not issued SET DEVICE.

Is this the only instance of @/SAY in this particular ouptut? If so, that would confirm the above.

I agree that it would be better if you could create a report. The fact that it would only be 3 inches wide is not a problem. However, the native reporting tool in VFP cannot handle unknown page lengths. It's no good setting the page length to the hightest possible value, because you would end up with yards of blank till roll.

I wonder if you could handle it by writing a custom report listener (assuming you are using VFP 9). Perhaps someone who knows more about these things than I do can answer that.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thank you for your replies Mike,

I meant the picture doesn't print, however, the text is printing on the receipt.

I do have set device to printer
set print on etc..



Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Ali,

This might be stating the obvious, but are you sure the POS printer is capable or printing images? You could test that by trying to print some sample receipts (including bitmaps) on some other printer.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Even on a lexmark laser, it doesn't print the image using the @ say bitmap command.

the pos printer prints the logo is the logo is programmed directly on the hardware.


Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Ali,

Ha! You're right. I've just done some testing, and I can't get it to work either.

Actually, now I come to think of it, why would you be able to print an image using @/SAY? The command was designed for DOS, and in those days Fox didn't know anything about bitmapped printers -- it treated all print output as a text stream. Sorry I didn't spot that earlier.

So all bets are off. You'll have to forget about using @/SAY. Maybe you need to go for the variable-page length report after all.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
You're absolutely right mike in your response.

I am looking on doing a variable page length program now.

i appreciate you taking the time and assiting me in this.

Long live Fox and the Tek-tip community

:)

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Ali,

Here's a crazy idea that probably won't work, but might be worth trying anyway:

1. Create a tiny report, consisting of just the logo and any fixed text adjacent to it. Set the page height in this report to just the height you need to print the logo and text (assuming the printer driver lets you do that).

2. To print a receipt, print the above report first, then output the rest of the receipt using ?? commands, like you've always done.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Dave, it does have that. However, everytime a store opens, we have to program the printer and then ship it back to the store.

i want to do it programmatically via the fox codes.

thanks

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top