web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Print to pdf , create a file for each document

(0) ShareShare
ReportReport
Posted on by 49

Hi,

i know that reports can be saved as pdf.

What i'd like to know is for example is it possible, for example for registered invoices, to run the report  from invoice 1 to 10 and the report automaically create 10 pdf.

without the need to create a loop that runs 10 times the report to savein pdf, for each invoice.

tks in advance

Fabrizio

I have the same question (0)
  • Marco Mels Profile Picture
    on at

    Hello,

    As a starting point you can have a look here:
    https://demiliani.com/2019/01/29/dynamics-365-business-central-and-direct-printing/

    The scenario may also required for (print to PDF).

    Thanks.

  • Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Out of curiosity -  Why do you not want to create a loop? To me that seems like the simplest and robust solution?

  • Verified answer
    gvol10110 Profile Picture
    105 on at

    Look at the Customer Statement report, it runs from a codeunit wrapper and does what you want - one pdf per customer. You can use this same approach with invoices. I am not sure if it loops or not, but why does that matter anyway?

  • GrisuX Profile Picture
    49 on at

    Hi,

    many thanks.. this is excatcly what i need ..  i wasn't aware of it.

    I will check if i can use it for my job.

    Tks

    Fabrizio

  • GrisuX Profile Picture
    49 on at

    Did'nt know Greg Solution.

    So i though that in order to have directly a pdf for each document, i had to call saveaspdf for each invoices i wanted created the pdf for, that's why i though about a loop.

    Didn't know i could use a codeunit to achieve it.

    Fabrizio

  • Suggested answer
    gvol10110 Profile Picture
    105 on at

    Fabrizio, kindly mark as answered :) Thanks!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans