Hi Experts,
I need to download multiple documents as a different PDF. For example, I will execute a Sales Invoice report with No. filter 1000..1005. When I do save as PDF, all the five documents are saved in a single print with multiple pages. Now the requirement is I need to download to five pdfs files.
I tried using repeat..until and SaveAsPDF function by applying filters. But when I do this only one document is getting saved. but the loop will execute for 5 times.
Any suggestions will be highly appreciated.
Thanks & Regards
Avinash B
Hello Avinash,
There is built-in functionality in NAV 2018, Check Report 116 - Statement, Output Type: PDF
after a run, Report generate PDF on given file of the folder
Note this report works fine in NAV 2018,
Download NAV 2018 and Put Logic for your own Report
Try what Saurav provided if not share the code it looks like in your repeat loop when you pass the variable it is skipping the filters.
Hi Avinash,
Yes you will have to write a custom code around this.
May be this will help - saurav-nav.blogspot.com/.../save-navision-rtc-reports-into-pdf-word.html
You can have repeat until on setselectionfilter.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156