PDF Save One File By Vendor

Kc_NirvanaKc_Nirvana Member Posts: 146
Hello.....
In report Export Electronic Payments, I want to save the report as PDF but i want that every page of report is a new pdf file.
It is possible?
Thanks in advance....
Junior Consultant & Developer in Dynamics NAV

"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"

Nirvana - Nevermind - Smells Like Teen Spirit

Answers

  • ara3nara3n Member Posts: 9,256
    You would have to modify the report, but it is possible.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Kc_NirvanaKc_Nirvana Member Posts: 146
    Thanks for the reply.......
    Can you give me some more help?
    Junior Consultant & Developer in Dynamics NAV

    "I'm worse at what I do best
    And for this gift I feel blessed
    Our little group has always been
    And always will until the end"

    Nirvana - Nevermind - Smells Like Teen Spirit
  • ara3nara3n Member Posts: 9,256
    well how experienced are you with NAV?

    Are you on classic or RTC? and have you seen the solutions for classic on how to save reports as PDF?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Kc_NirvanaKc_Nirvana Member Posts: 146
    I have some experience in developing on NAV.....
    Yes i have seen the code here with the bullzip PDF but i am not that good in developing............
    I am trying to send to pdf on the classic version......
    Junior Consultant & Developer in Dynamics NAV

    "I'm worse at what I do best
    And for this gift I feel blessed
    Our little group has always been
    And always will until the end"

    Nirvana - Nevermind - Smells Like Teen Spirit
  • ara3nara3n Member Posts: 9,256
    I suggest to contact your Local solution center to help you on how to get started at least.

    I don't know if it's possible to put all the step required. It would be as though actually doing the modification for you.

    If you have specific question we can help you.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • rsaritzkyrsaritzky Member Posts: 469
    Generating PDF's involves using a PDF-generating utility of some sort, e.g. Bullzip. With Bullzip, you would have to write code to generate a new filename at the beginning of each page - to my knowledge, Bullzip does not have the capability (as far as I have been able to determine) to automatically generate a separate PDF per page. But there are many products with PDF-generating capability. In general, they all work with NAV in a similar fashion - you write code to generate your PDF's, and I'm sure that some of them have the "split" option to do so.

    With Bullzip, here's some sample code that I use. In this case note that I am COMBINING invoices into a SINGLE PDF - the opposite of what you want to accomplish:
    FileDirectory := 'I:\';
    FileName := 'FF' + "Invoice No." + '.pdf';
    BullzipPDF.SetPrinterName('PDF-FLG');
    BullzipPDF.Init;
    BullzipPDF.LoadSettings;
    IF FirstInvoice <> TRUE THEN  // More than one invoice goes to the PDF, so append it to the previous one
      BullzipPDF.SetValue('MergeFile', FileDirectory + FileName);
    BullzipPDF.SetValue('Output',FileDirectory+FileName);
    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);
    

    Other products will have other methods available to control the various settings. But even with Bullzip, it would not be terribly difficult to create code to create a new PDF each time the page number changed.

    Hope that helps.
    Ron
  • ara3nara3n Member Posts: 9,256
    the control on how to split the pages can be done from nav. You would simply run the report to print one page at a time and save it as pdf.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.