Skip to main content

Notifications

Dynamics 365 Community / Blogs / Rashed Amini / Faxing Reports from Dynamic...

Faxing Reports from Dynamics NAV

Rashed Profile Picture Rashed 3,765

I saw some question on mibuso forum on how to fax from Navision. This blog is about how to fax from Navision. This is method uses Microsoft Fax Services. You can use this to fax invoices etc to customers that prefer to receive Invoices by Fax. By default it is not installed and you need to install it. To install Fax Services, you need to open control Panel. Click on Add remove programs and click on Add/Remove Windows Components. Then tick Fax Services and click OK. It may ask for windows CD to install it.
Fax1

After it is installed, make sure fax service is running in windows services. The code is fairly simple. Here is a screenshot
Fax2

Notice in code that I am saving it as rtf file instead of html file. The FaxDoc automation issues a print command on the file and the default program that is associated it with suppose to open the file print it and then close. I found on the internet that there are issues with print html files. So by changing the ending of the file to rtf, windows opens MS Word and prints the file. MS word is smart enough to know that it’s a html file and it renders it correctly. If the default program that opens rtf file in your OS is different than word, you might want to try with html file and see if it works or try to save the file as PDF. In 2009 you can save it as excel on service tier so you can try to print excel as well. I tried to change the html file type to open with Microsoft word but no luck.
You can monitor the fax status in fax Console. You can open it from Start->Program files->Accessories->Comunications->Fax->Fax Console. Here is a screenshot.
Fax3

Before sending fax from NAV you need to click on Tools->Configure Fax and select your modem and check enable Send.

Fax4

Here is the object for this. FaxExample Happy faxing.

Comments

*This post is locked for comments