Options

Create PDF of a classic report from RTC

denpardenpar Member Posts: 80
edited 2015-01-16 in NAV Three Tier
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!
If your work becomes a passion...
www.pardaan.com

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    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)
  • Options
    denpardenpar Member Posts: 80
    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 2009 :(
    If your work becomes a passion...
    www.pardaan.com
  • Options
    lubostlubost Member Posts: 618
    Hi,

    I think that the best and the easiest solution is using PDF virtual printer e.g. PDFCreator.
  • Options
    denpardenpar Member Posts: 80
    Lubost,

    I don't think another PDF printer solution is the solution for this issue....
    If your work becomes a passion...
    www.pardaan.com
  • Options
    TonyDuarteTonyDuarte Member Posts: 92
    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...
  • Options
    denpardenpar Member Posts: 80
    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.com
Sign In or Register to comment.