Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
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 73,647 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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans