Shanachie and Chris
I am hoping your logo printing discussion can help me.
I'm not a programmer but wrote extensive Foxpro code for my office years ago which we still use in Visual Foxpro 5. Our programs use fread() to print 'fill-in-the blank" type forms built with PCL code in a 3rd party software. The form goes to the printer without ejecting, then the data follows to fill in the blanks and put x's in the squares.
This code was given to me by the 3rd party company to do what I've just described.
???chr(27)+"&f0y" *
???chr(27)+"&f0X" *
H=fopen(ZXNFILE) *
do while not feof(h) *
??? fread(H,254) *
enddo *
=fclose(h) *
???chr(27)+"&f1X"
???chr(27)+"&f10X"
???chr(27)+"&f4X"
h=fopen('\foxpro2\exp\datafile.txt')
do while not feof(h)
??? fread(h,254)
enddo
=fclose(h)
???chr(12)
???chr(27)+"&f5X"
??? chr(27)+"&l0H"
Anyway, it is VERY painstaking to build a form, and I currently need to update things.
Can I use a scanner instead then send the image to the printer (i.e. without ejecting)? If your code for the logo applies, and since my image file name is not variable, can I use the following code?
COPY FILE myform.gif TO SYS(5)+SYS(2003)+[\temp.gif]
REPORT form reports\print_gif.frx TO PRIN
and place it instead of the lines I've showed you that are followed by *
(I've never used the REPORT form command, so I dont really understand it.)
Leo