General information
Category:
Coding, syntax & commands
Title:
FAXING from within VFP5
I'm trying to fax a letter from within VFP 5
I use the set printer to command, it's not a report.
It works fine going to a printer.
Can someone help me with re-directing the printer to the fax: device?
I have quicklink installed, I can install MS Fax if necessary.
I would like to be able to pass parameters also, but I would really like to see it work first. I was told that mapi should also work, I don;t know how to attempt it!
Any help would be great!
The following is an example of my current code.
lok=Printer_On(3,cFax)
? " "
? "Printed on Fax Printer ==> "+cFax
? " Trailer Quote System Faxing Option Test "
? "This is a sample Test Print Out for Faxing!"
? "This is a sample Test Print Out for Faxing!"
? "This is a sample Test Print Out for Faxing!"
? "This is a sample Test Print Out for Faxing!"
? "This is a sample Test Print Out for Faxing!"
? "This is a sample Test Print Out for Faxing!"
? "This is a sample Test Print Out for Faxing!"
? " Trailer Quote System Faxing Option Test "
? "Printed on : "+ctod(date()) + " @ "+time()
? " "
lok=newpage()
lok=Printer_Off(3,cFax)
=======================================
Function Printer_On
PARAMETERS nMODE,cFILE
If nMode=3
SET ALTERNATE TO &cFile
SET ALTERNATE ON
SET CONSOLE OFF
endif
End Function
=======================================
End Code
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only