Send Reports by E-mail as HTML attachment?

Yarmoshy
Member Posts: 8
Right now most of our users have to either save reports as HTML or print to a PDF creator, then attach said HTML/PDF file in any e-mails they wish to send. The strange thing is that at one point some of them were able to simply view the report print preview, click Send > Report by E-mail..., and the report was automatically attached as an HTML file in the generated e-mail. :?
My question is this: is there any way to modify the Send > Report by E-mail... function to automatically attach an HTML copy of the report in the generated e-mail? I figured if anyone knows where the code is for the "Save as HTML..." or "Send > Report by E-mail..." functions, then at least I could mess around with the code on our test environment.
Thanks for your time!
P.s. Those functions I am talking about are just the ones in the File menu. Also, we are using NAV 6.0.29626 (Dynamics NAV 2009 SP1)
My question is this: is there any way to modify the Send > Report by E-mail... function to automatically attach an HTML copy of the report in the generated e-mail? I figured if anyone knows where the code is for the "Save as HTML..." or "Send > Report by E-mail..." functions, then at least I could mess around with the code on our test environment.
Thanks for your time!
P.s. Those functions I am talking about are just the ones in the File menu. Also, we are using NAV 6.0.29626 (Dynamics NAV 2009 SP1)
0
Comments
-
If you look at the report type variable there is a "SaveAsHTML" method.
You can then use the Mail codeunit (397) in combination to send an email with an attachement which would be the report you saved as HTML.
t1
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