Automatical printing of Reports to PDF after executing them

marcussulic
Member Posts: 15
Hello Community,
I wanted to backup printed documents by automatically saving them to PDF in some location on the drive. Is it even possible?
When the Enduser prints some document with a physical printer they should be automatically saved as PDF in some path
I wanted to code a publisher event function in the CU1, but im not sure if its even possible. Im not a NAV-savy yet.
Best regards
Marcus
I wanted to backup printed documents by automatically saving them to PDF in some location on the drive. Is it even possible?
When the Enduser prints some document with a physical printer they should be automatically saved as PDF in some path
I wanted to code a publisher event function in the CU1, but im not sure if its even possible. Im not a NAV-savy yet.
Best regards
Marcus
0
Answers
-
marcussulic wrote: »Hello Community,
I wanted to backup printed documents by automatically saving them to PDF in some location on the drive. Is it even possible?
When the Enduser prints some document with a physical printer they should be automatically saved as PDF in some path
I wanted to code a publisher event function in the CU1, but im not sure if its even possible. Im not a NAV-savy yet.
Best regards
Marcus
It is, I don't know your version but the new ones have the possibility to print to pdf. The problem is the automatic idea. Changing that codeunit shouldn't be your first idea.0 -
marcussulic wrote: »Hello Community,
I wanted to backup printed documents by automatically saving them to PDF in some location on the drive. Is it even possible?
When the Enduser prints some document with a physical printer they should be automatically saved as PDF in some path
I wanted to code a publisher event function in the CU1, but im not sure if its even possible. Im not a NAV-savy yet.
Best regards
Marcus
It is, I don't know your version but the new ones have the possibility to print to pdf. The problem is the automatic idea. Changing that codeunit shouldn't be your first idea.
Im Using NAV 2016/2018
Im aware theres a SaveAsPDF Function. The problem is I dont want to programm "SaveAsPDF" in every Report / in every place a report is printed in the system. Its not a good solution and its very time-consuming... is it the only one?
I thought I could just alter and use the logic that sends the document to the printer. There are a few printer related Functions already in CU1 like "FindPrinter" where you could return the printer name of your choice. Is there a way to define own functions there?
Is there a way I could get to execute this FindPrinter function twice, so I could print a document once with a printer of choice and the second time as a PDF?0 -
Check out the Live Links control, available in the Download section. If the Snapshot feature doesn't suffice, with some slight modification, you can easily achieve what you want.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