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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@ Say graphic printing issue

Status
Not open for further replies.

MdotButler

Programmer
Jan 18, 2006
104
US
I have a check print program that because it has to switch printer trays is not done using a standard FoxPro FRX report. Instead I use a "Set Device to Print" and issue "@row, column SAY 'ssssssss'" type commands. In VFP 7 I used to be able to send the check signature image using:

@lnRow,lnColumn SAY 'signature.bmp' BITMAP SIZE 3,20 ISOMETRIC

This has worked from FoxPro 2.6 through VFP 7. Now in VFP 9 I get a syntax error. Basically I have to remove the "SIZE 3,20 ISOMETRIC" parameters. Is there another way to accomplish this, or do I have to make the image the correct size. I am afraid if I do the latter that the signature image will print differently on different printers.

Any suggestions out there?

Thanx
Mark
 
Have you tried Set Compatible Foxplus
According to help it does affect the @say command, but possibly not all of it. The help files says
"@say.....with chr(7)" but it may be worth a try.
wjwjr

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
The reported SYNTAX error is not being reported correctly. The suggestion of setting compatibility had no effect. I have narrowed the error down to the line that is sending printer setup commands. The ESC+'E' is a printer reset command.
Code:
*pcPrinter='\\MXW2\HP LASERJET 2430 PCL 6'
pcPrinter=GETPRINTER()
pcEndPrint=CHR(27)+'E'

SET PRINTER TO NAME (pcPrinter)
SET DEVICE TO PRINT
??? pcEndPrint && --comment this line and no syntax error--

@1,10 SAY 'C:\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 9\FOX.BMP' BITMAP SIZE 3,20 ISOMETRIC
@7,10 SAY 'Next line ...'
*
SET DEVICE TO SCREEN
SET PRINTER TO
I currently have VFP 9 with SP1 installed. I do not think this has to do with service packs but can someone try it with VFP 9 SP2? If not service pack oriented can someone spot something I am doing wrong.

Thanx
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top