Create PDF of a classic report from RTC

denpar
Member Posts: 80
Hi all,
I have a customer using the RTC client (NAV 2009 R2) with 32 Classic reports (no RDLC lay-out).
The customer wants the possibilty to save them as PDF, as far as I know the only option is to add the RDLC lay-outs for all reports! And that's a lot of work
I tried several things to use Bullzip and create a PDF in the RTC of a Classic lay-out without RDLC, but unfortunately without success....
Any advice on this issue would be appreciated!
I have a customer using the RTC client (NAV 2009 R2) with 32 Classic reports (no RDLC lay-out).
The customer wants the possibilty to save them as PDF, as far as I know the only option is to add the RDLC lay-outs for all reports! And that's a lot of work

I tried several things to use Bullzip and create a PDF in the RTC of a Classic lay-out without RDLC, but unfortunately without success....
Any advice on this issue would be appreciated!
If your work becomes a passion...
www.pardaan.com
www.pardaan.com
0
Comments
-
I have tried it as well before, without success either. The problem is that, when a classic report is started from RTC, a new session is created to run the classic client. As you don't have control over this session you can't determine when the report is finished executing.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Thx Luc for your reaction... this is indeed the big problem!
Still hoping that somebody has invented something brilliant... I really hate the RDLC lay-outs in 2009If your work becomes a passion...
www.pardaan.com0 -
Hi,
I think that the best and the easiest solution is using PDF virtual printer e.g. PDFCreator.0 -
Lubost,
I don't think another PDF printer solution is the solution for this issue....If your work becomes a passion...
www.pardaan.com0 -
On a few clients we have in nav 2009 R2 we are still working in classic environment only and to make reports in pdf we have a call to a codeunit that calls pdf creator to print the report and save in a specific folder.
Don't know if it can be a solution for you...0 -
Thanks for the replies, but I think I found my own solution....
1. Make Bullzip PDF Printer the default printer for the Classic report (in this example 50080) without RDLC (printer selections)
2. Add this code in Report - OnInitReport()BullZipPDF.Init; BullZipPDF.LoadSettings; BullZipPDF.SetValue('Output','c:\temp\temp.pdf'); //only example, better to use timestamp BullZipPDF.SetValue('Showsettings', 'never'); BullZipPDF.SetValue('ShowPDF', 'no'); BullZipPDF.SetValue('ShowProgress', 'no'); BullZipPDF.SetValue('ShowProgressFinished', 'no'); BullZipPDF.SetValue('SuppressErrors', 'yes'); BullZipPDF.SetValue('ConfirmOverwrite', 'no'); BullZipPDF.WriteSettings(TRUE);
3. Run the report from a page in the RTC:REPORT.RUN(50080,FALSE,FALSE,SalesInvHeader); //in my example one sales invoice header, not possible to print multiple
4. File 'Temp.pdf' is created now, if needed you can rename it!If your work becomes a passion...
www.pardaan.com0
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