Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
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,640 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,959 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans