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

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
    27,280 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
    101,995 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,691 Super User 2026 Season 1

#2
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,095 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,069 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans