Hi,
I tried #2 method and stuck. Then I tried #1 method, it works for report with graphic. However, I need a way to pass parameters to Send Fax Wizard.
Thanks for your help.
Emery
------------------------------------------------------------------------------------------------------------------------------
Method #1:
When I used the following code to fax a report (which also contains graphic/image), Windows XP Send Fax Wizard came up:
....
SET PRINTER TO NAME 'FAX'
REPORT FORM (fform) TO PRINTER
Does anyone know how to programmatically pass recipient's info (name, fax #, etc) to Send Fax Wizard
------------------------------------------------------------------------------------------------------------------------------
Method #2:
The following codes work only for pure ASCII text:
.....
myFaxDocument = createobject("FaxComEx.FaxDocument")
myFaxSender = myFaxDocument.Sender
myFaxSender.LoadDefaultSender()
myFaxDocument.Subject = "Test"
myFaxDocument.Recipients.Add(faxnumb, name)
REPORT FORM (fform) TO FILE (faxFile) ASCII
myFaxDocument.Body = (faxFile)
myFaxDocument.Submit(ServerName)
......
However, if I omit ASCII option (my report alos contains image/graphic), it printed out PCL text if I name the output file using '.txt' extension. (This is because the report got rendered is of printer driver format, in my case PCL).
It failed if I name the output file using '.pcl' extension because FaxDocument.Body only supports .txt, .doc and .xls extensions,
Does anyone know how to resolve it
----------------------------------------------------------------------------------------------------------------------------