Hi all
I got really confused with automatically converting a report to PDF. I looked all possible topics but cannot figure it out how to use in Navision-code.
This is what I am looking for:
1) Call a report from a codeunit e.g RUNMODAL(……..)
2) This report should be converted to PDF file with my custom file name and passed to my function to send it via email. (My Function uses CDO and I need it so I can email address from the Vendor/customer cards)
The part I stucked in is how to converted to PDF. I downloaded PDFEdit995, but cannot figure it out how to incorporate into Navision
Thank you in advance
0
Comments
http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=7057
with PDF995edit - it allows you to add setting to your pdf file once created.
Like auto attaching it to and email - or auto name & increment name
see here
http://www.pdfedit995.com/
http://www.BiloBeauty.com
http://www.autismspeaks.org
After reading the reply about pdf995edit, I downloaded it and got that to work with Navision.
The documentation states that it will read an ini file for email settings. I created a codeunit to write to the ini file. Then I just need to make a small modification to each report to call the codeunit, and pass parameters including email address, such as the email address from the vendor table.
For 50 users, the license is $450. In the next few weeks, we will test it on the client site, and hopefully move it to the live system.
Bottom line:
- set amyuni as your default printer
- print without request form (RUNMODAL...)
- restore default printer
Works like a charm!
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Our solution does this without any change to the report
Pdf995 is cheap but it think it looks cheap too. Edocprinter is a really good pdfwriter with a lot more options then pdf995 and it cost just a little bit more.