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...
Suggested Answer

send report in printer from AL

(1) ShareShare
ReportReport
Posted on by 175
Hi,
 
can anyone suggest me how I can send report directly to printer from AL code?
 
 
I have the same question (1)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,154 Most Valuable Professional on at
  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at
     
    In Microsoft Dynamics 365 Business Central, you can use AL (Application Language) to send a report to a printer by using the REPORT.RUNMODAL function. Below is a basic example:
     
    // Codeunit example
    procedure SendReportToPrinter()
    var
        ReportRunRequest: Record "Report Run Request";
    begin
        // Initialize the Report Run Request record
        ReportRunRequest.SETRANGE("User ID", UserId);
        // Specify the Report ID you want to print
        ReportRunRequest."Report ID" := 'YourReportID';
        // Optionally, set other parameters like filters
        // ReportRunRequest.SETFILTER("Field Name", 'Filter Value');
        // Run the report and send it to the printer
        IF ReportRunRequest.INSERT THEN
            REPORT.RUNMODAL(ReportRunRequest);
    end;

     
    In this example, replace 'YourReportID' with the actual Report ID you want to print. You can find the Report ID in the Object Designer in Business Central.
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    Hi, do you want to print directly? The method mentioned by Umesh still requires opening the report in a browser and cannot print it directly.
    You can try Universal Print.
    More details:
    Print directly to local printers with Universal Print
    Set Up Universal Print Printers
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at

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 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans