Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Printing a Report

Posted on by 25
Hello,
 
 
How can I make a code that prints the report without coming through this page?
  • Suggested answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    Printing a Report
    Hi,
     
    You can use the Report.RunModal() function in AL code to run the report without window popup. This function allows you to run a report silently without displaying the request window to the user.
    If you do not know the specific report that you want to run when you are designing your application, you can use this method Report.RunModal , or the Report.Run Method. If you do know the specific report that you want to run, then you can use the RunModal Method or the Run Method.
     
    The reference Microsoft Document:
     
    Best Regards,
    Judy
  • Suggested answer
    Shrey Chauhan Profile Picture
    Shrey Chauhan 288 on at
    Printing a Report
    Hello,

    Here's the code to run report without request window popup :
     
    action("Report")
    {
        Image = Report;
        ApplicationArea = All;          
        trigger OnAction()            
        begin
            Report.Run(70005,false,false);
        end;            
    }
     
    Hope this help's.
    May other expert's give you better solution.

    Thank You,
    Shrey Chauhan
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,480 Super User 2024 Season 2 on at
    Printing a Report
    You mean, you want to hide the Request Page? This can be done using the following two methods.
    Report.Run(Integer [, Boolean] [, Boolean] [, var Record]) Method
     
    Report.RunModal(Integer [, Boolean] [, Boolean] [, var Record]) Method
     
    Hope this helps.
    Thanks.
    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans