web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS: print multiple reports simultaneously

(0) ShareShare
ReportReport
Posted on by 1,470

Hi to all!

I want to print the same report (with different parameters) more than once simultaneously.

I call the report from a class with the following code: 

MyNewController controller = new MyNewController();
Args args = new Args();

args.record(this.parmParmBuffer());
controller.parmArgs(args);
controller.parmReportName(ssrsReportStr(SSRSReportName, DesignName));
controller.parmShowDialog(false);
controller.parmReportContract().parmRdlContract().parmLanguageId(CompanyInfo::languageId());
controller.startOperation();

The "MyNewController" extends SrsReportRunController and in the method "runReport" I have a while, in which I call the "super()" more than once.

while (queryRun.next())
{
//set contract parameters
contract.parm...();
contract.parm...();

//generate the report  
super();
}

(For example, I have a query, and for each record of the query I want to print a report.)

My problem is that the next report will open only when I closed the previously report.

I want to open reports all at the same time.


Any ideas?

Thanks in advance

Martina

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    What's your print medium? The report viewer form?

  • dolee Profile Picture
    11,279 on at

    Hi Martina,

    If printing to report viewer form, it is possible to modify the form object to print additional reports.

    http://domhk.blogspot.hk/2014/04/ax2012-print-multiple-reports-to-screen.html

  • Martina Bergamo Profile Picture
    1,470 on at

    The user can select the print medium type. It can be screen or printer... at the moment I test with screen

  • Martina Bergamo Profile Picture
    1,470 on at

    The standard permit to print multiple reports. See for example:

    Accounts Receivable > Reports > External > Customer account statement

    I think I did something wrong! But...what?

  • Community Member Profile Picture
    on at

    Hi Martina

    Dominic has provided a solution for this. Kindly visit this link.

    http://domhk.blogspot.hk/2014/04/ax2012-print-multiple-reports-to-screen.html

  • Gump_WEi Profile Picture
    on at

    1. overwrite

    MyNewController.dialogShow()

    protected void dialogShow()
    {
    SysOperationDialog sysOperationDialog;
    FormRun formRun;
    dialog.run();
    this.dialogPostRun();
    sysOperationDialog = dialog as SysOperationDialog;
    formRun = sysOperationDialog.formRun();
    formRun.detach();
    }

    2. overwrite MyNewController.dialogClose()

    protected void dialogClose()
    {
    //super();
    }

  • Gump_WEi Profile Picture
    on at

    1. overwrite

    MyNewController.dialogShow()

    protected void dialogShow()

    {

    SysOperationDialog sysOperationDialog;

    FormRun formRun;

    dialog.run();

    this.dialogPostRun();

    sysOperationDialog = dialog as SysOperationDialog;

    formRun = sysOperationDialog.formRun();

    formRun.detach();

    }

    2. overwrite MyNewController.dialogClose()

    protected void dialogClose()

    {

    //super();

    }

  • Community Member Profile Picture
    on at

    Hi Martina,

    I am having the same scenario where I have to print multiple reports based on the number of query range values. Did you find a solution

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans