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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Add the option to print to a page

(0) ShareShare
ReportReport
Posted on by 92

I made a report of the page "Get Receipt Lines" (Purchase invoice -> Line -> Functions - Get Receipt Lines). The report appears if I put your name in the Business Central search engine, but I would like to add the option "Print" to the page "Get Receipt Lines", so that the report is generated right there, only with the lines corresponding to each Purchase Invoice . How can I do this?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    A page extension initially for the get receipt lines page. Add a page action called print. In the onaction trigger add a create a var for the main data item in the report. Use setrange to apply filters based on the records displayed. Use the variable to set a view and then run your report

    Examples: docs.microsoft.com/.../reportinstance-settableview-method

    docs.microsoft.com/.../devenv-adding-actions-to-a-page

  • Suggested answer
    YUN ZHU Profile Picture
    102,791 Super User 2026 Season 2 on at

    Hi, as Josh said, you can use pageextension to add new action to Get Receipt Lines (5709, List) page.

    pastedimage1641515458337v1.png 

    Hope the following will help.

    https://yzhums.com/20903/

    Thanks.

    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 607 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 421 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 375 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans