Hello I've recently posted a blog on how to fax from Nav. Hopefully people find it useful.
Here is the link for detail explanation.
http://mibuso.com/blogs/ara3n/2009/06/1 ... amics-nav/
IF ISCLEAR(FaxServer) THEN
CREATE(FaxServer);
IF ISCLEAR(FaxDoc) THEN
CREATE(FaxDoc);
FaxServer.Connect('');
FileName := 'C:\test.rtf';
REPORT.SAVEASHTML(REPORT::"Top __ Customer List", FileName ,TRUE);
FaxDoc.Body := FileName;
FaxDoc.DocumentName := 'My Fax';
FaxDoc.Recipients.Add('17342351901'); //Fax Number
FaxDoc.ConnectedSubmit(FaxServer);
And the variables are.
Name DataType Subtype Length
FaxServer Automation 'Microsoft Fax Service Extended COM Type Library'.FaxServer
FaxDoc Automation 'Microsoft Fax Service Extended COM Type Library'.FaxDocument
JobID Text 30
FileName Text 100
Ahmed Rashed Amini
Independent Consultant/Developer
blog:
https://dynamicsuser.net/nav/b/ara3n
Comments
Here a LINK to the MSDN to learn more about MS Fax Service and to learn how to use it.
Regards
You are welcome.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
The code works great. I use the code you posted for the PDFCreater and this code to fax invoices in a batch. I am just having one problem. When I do the batch the faxserver is opening up a adobe reader window for every fax and when it gets to about 30 windows it crashes.
Any ideas?
First thing is to rule out adobe.
Instead of faxing pdf. try to fax a text file and see that you can batch fax 50 times.
If it is adobe, try to save the report as html. or get another software that opends pdf documents.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks again Rashed for all of your help,
I'm sure other people will find it useful.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Using your sample form i receive the following error:
The Call to member ConnectedSubmit Failed. FaxComEx.FaxDocument.1 returned thefollowing message: Operation Failed.
Does anyone know what this can be?
:-k
Try to manually send a fax.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Try it on another computer.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Why would you rule out adobe? What kind of problems does it create?
Sorry I'm just learning about this stuff, and trying to get a better grasp on it.
Are there any other links on MS Fax Service that could help me learn more?
I've gotten a lot of help from Premium Corporate Internet Fax and Inexpensive Online Fax, so hope these links will be of help.
Thanks!
Taylor
Thanks
Thanks.
Why would it be wrong?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Never mind, I assume that can't be done. Thanks anyway, I learn a lot from you.
I have quit New in FAX coding .
May i know your this I FAX coding does need match or specific to which window fax version?
Thanks and regards