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?
 
 
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    send report in printer from AL
  • Suggested answer
    YUN ZHU Profile Picture
    85,338 Super User 2025 Season 1 on at
    send report in printer from AL
    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
    Umesh Pandit Profile Picture
    9,303 User Group Leader on at
    send report in printer from AL
     
    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
    Gerardo Rentería García Profile Picture
    20,560 Most Valuable Professional 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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans