Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
  • Table Of Contents Toc
  • Feedback & Rating feedback
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

By : Agarwal, Aggarwal, Elangovan
4.4 (7)
close
close
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

4.4 (7)
By: Agarwal, Aggarwal, Elangovan

Overview of this book

Microsoft Dynamics AX 2012 R3 Reporting Cookbook is recommended for Dynamics AX developers and .NET-based SSRS developers looking to familiarize themselves with the new AX reporting framework.
Table of Contents (12 chapters)
close
close
11
Index

Auto e-mail, save as file tasks in reports


There are some reports that demand no user interaction and are expected to be directly saved in a file or e-mailed. This recipe will share how the printer settings contract can be used to achieve this in a simple manner.

How to do it…

This recipe has been divided into two sections. The first section details how to save the report to a file, and the second section details how to send it through e-mail.

Saving the report to a file

  1. To save a file onto the printer, create a new static method in the controller class or in the class from where the report is invoked.

  2. In the method, place the following code to save the report:

    public static void saveReporttoFile(Args _args)
    {
    /*if the controller is not overriden for your report then use appropriate controller*/
        SrsReportRunController controller = new PktRdlCustTransListController();
        SRSPrintDestinationSettings printSettings;
            
        controller.parmReportName(ssrsReportStr(PktRdlCustTransList, CustTransList...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY