report in PDF per document No.

pavanpavan Member Posts: 11
Hello Experts,

I tried to search this topic but couldn't find similar issue & solution so writing this.
my requirement is to generate multiple PDF file (1 file per document no.) from a report (lets say Purchase order) by giving range (e.g. PO/14/0001..PO/14/0100). Currently i can print all 100 POs in single PDF file but i need 100 different PDF files.
Any trick on how can i do this?

Answers

  • tinoruijstinoruijs Member Posts: 1,226
    You could create a codeunit that prints the reports you want in a repeat-until construction.

    But I guess what you're looking for is a property or a function CreateNewPdf in a report on a dataitem, which I can't find..

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • pavanpavan Member Posts: 11
    I am not looking for a property or function. i would like to develop the solution myself.
    I think the Repeat..Untill loop in a codeunit should work. But how to do it in such a way that i can use if for all reports?
  • tinoruijstinoruijs Member Posts: 1,226
    You probably won't need this for all reports.
    So I would just create seperate functions in 1 codeunit per report.
    And create a boolean on each report which lets users choose to execute the batch-printing of that report for the filters they put in.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • pavanpavan Member Posts: 11
    Awesome... thanks tinoruijs
Sign In or Register to comment.