printing over html

Enrique Arredondo henry at vegena.net
Fri Aug 26 12:04:10 PDT 2005


I have 2 venders with a computer running SCO unix and filepro, they have a 
filepro menu which let's them print tags on a barcode printer. Now, this 
setup is quite obsolete because the database changes by the minute and 
they are always missing new parts or modifications on the information. So 
my new project that I want to make is something like this:

I'll create a webpage with 2 fields, (i.e. Part and serial number) then as 
soon as they hit submit button the cgi script will run filepro at my 
server and generate the report that would normally print on a barcode 
printer (all special print codes plus barcode information), So here's the 
hard part, how can I make so that this file gets printed on the remote 
printer ? Is there a special command on HTML to do that ? When I *cat* the 
file back  to them would it be like :

    echo Content-Type : print/file

     cat $FILE

   So their windows system asks them right away to choose their printer and 
after selecting the barcode printer it will print .

Here is a vague idea of how my cgi script would look like :

---------- cut here ---------------
RECVDINFO=`cat`

./setfpenviroment

report printing -f barcode -u -r $RECVINFO -p REPORT

if [ -s REPORT ]
then

     echo Content-type : print/plain
     echo

     cat REPORT

fi

------------- cut here --------

Don't worry about the syntax , it's just an example of the idea. So here 
REPORT is a filepro generated HTML or report file that has to make the 
remote machine print the file. Do I make sense ?

Is that possible ? I can do this same thing with paypal and ebay, every 
time a ship something to my buyers paypal prints on my laser printer a 
USPS shipping label with barcodes.

Thanks

Enrique A.


More information about the Filepro-list mailing list