Help on creating PDFs and Auto emailing....

boywonder
Member Posts: 179
I have a solution using Dynamics NAV 5 with some PDF creating software which when printing a report will automatically email the report if the customer/vendor is set to communication type - 'Email'.
This works fine but the PDF creation software is chargeable and I'd like to move away from it.
Is there a simple way of getting any NAV report to go straight into Word 2007 sent with an email address so the user can view the document first and then only have to press Send?
Alternatively is there any free PDF software with built in API so I can pass commands to it and achieve this?
I've looked at the free package 'PDF Creator' which is good but I can't see anything about passing parameters otherwise this would be perfect as it is simply installed as a printer and has an Email button on the form that pops up so clearly it would be possible if the software allowed for the email address to be passed in as a parameter....
Any help on this will be MUCH appreciated
This works fine but the PDF creation software is chargeable and I'd like to move away from it.
Is there a simple way of getting any NAV report to go straight into Word 2007 sent with an email address so the user can view the document first and then only have to press Send?
Alternatively is there any free PDF software with built in API so I can pass commands to it and achieve this?
I've looked at the free package 'PDF Creator' which is good but I can't see anything about passing parameters otherwise this would be perfect as it is simply installed as a printer and has an Email button on the form that pops up so clearly it would be possible if the software allowed for the email address to be passed in as a parameter....
Any help on this will be MUCH appreciated

0
Comments
-
Whe use PDF Creator and use the SMTP mail codeunit ( 400) to mail it. You can try that?0
-
many thanks for the quick reply
unfortunately that wouldn't work as it would involve user intervention, the 'PDF Creator' box would still appear and they would have to choose a filename/location which the SMTP codeunit would need to find...
I want something with no intervention at all.... :?0 -
Not necessarily.
PDFCreator you can set it to autosave the file.PDFCreatorOption.UseAutosave := 1; PDFCreatorOption.UseAutosaveDirectory := 1; PDFCreatorOption.AutosaveDirectory := fileDirectory; PDFCreatorOption.AutosaveFormat := 0; //PDF file, you can also save in other formats PDFCreatorOption.AutosaveFilename := fileName;
0 -
Have you checked out this post - it probably handles every question about pdf's
viewtopic.php?f=5&t=18331
**2000th Reference to this post =D>
Or check out his Bullzip Pdf version
http://mibuso.com/blogs/ara3n/2008/08/0 ... ts-to-pdf/0 -
Reinhard wrote:Not necessarily.
PDFCreator you can set it to autosave the file.PDFCreatorOption.UseAutosave := 1; PDFCreatorOption.UseAutosaveDirectory := 1; PDFCreatorOption.AutosaveDirectory := fileDirectory; PDFCreatorOption.AutosaveFormat := 0; //PDF file, you can also save in other formats PDFCreatorOption.AutosaveFilename := fileName;
brilliant, thank you =D>
sorry if you guys have seen this kind of thread 2000 times but I searched here and did not find..!0 -
Ok just been told its an all Microsoft soluton that is required, so PDFcreator, XYZcreator etc all out the window now ](*,)
So.....
How can I automatically send a report (eg Statement) to Word 2007 then sending as a PDF in an email - so email address must be auto completed from Customer E-Mail field.
The user just wants to press Print on the Report, nothing else.....
I know (now) that NAV to PDF has been covered here many times but I don't think Word 2007 has come into it....apologies if it has but a search did not reveal it.....0 -
boywonder wrote:Ok just been told its an all Microsoft soluton that is required, so PDFcreator, XYZcreator etc all out the window now ](*,)
.......then sending as a PDF in an email
PDF is not a Microsoft product :shock: - so how were you are you supposed to go from Word to PDF - use PDFcreator,etc...
To see examples of exporting to word - look at the create interaction wizard.0 -
MS have a free download for Word 2007 that allows "Save As PDF" so that's what I'd need to tap into via Automation somehow...
I'm told it's been done ...0 -
Hi,
Have a look at the code in Segment Line table and the codeunit WordManagement (this has code for merging and also examples of calling the word automation)0 -
the user can also do an executable upgrade to 2009 and then you can write for your report the layout and be able to use the service tier to call
Report.SAVEASPDF.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions