Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Save multiple documents into multiple pdfs

Posted on by 1,455

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

  • Suggested answer
    Sumit_Nandha Profile Picture
    Sumit_Nandha 160 on at
    RE: Save multiple documents into multiple pdfs


    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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Save multiple documents into multiple pdfs

    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.

  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    RE: Save multiple documents into multiple pdfs

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans