Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Print a few copies of own SSRS report

(0) ShareShare
ReportReport
Posted on by

Hi, 

is it possible to print my own ssrs report on a few coppies in one window?

I have tried wieth this but it is not work:

learn.microsoft.com/.../how-to-print-a-report

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: AX2012 Print a few copien of own SSRS report

    Okay then so you want to print the same output twice in same window, not in separate window.

    Then you no need to call the report twice in the controller class.

    On the same design copy the same design and paste below the old one.

    For example if you have tablix1 in the current design. Just copy the tablix1 and paste it below the tablix1.

    Thanks,

    Girish S.

  • Andriej Profile Picture
    on at
    RE: AX2012 Print a few copien of own SSRS report

    Yes, 

    it works, but I want to print this two copies in one window. I want to print on printer from screen by one click.

    Two coppies of this same report inside one window:

    pastedimage1668526570169v1.png

    and

    pastedimage1668526601399v2.png

    So one printout 1 of 2 and second 2 of 2 in this same window.

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: AX2012 Print a few copien of own SSRS report

    Anyways to achieve this you need to have controller class. Also duplicate the same design you have.

    Try the below code in the main method of the controller class. Map the controller class to action menu item.

    Public static void main(Args _args)
    {
        //1st report
        YourControllerClassName controllerCopy1 = new YourControllerClassName();
        controllerCopy1.parmReportName(ssrsReportStr(ReportName,Design1));
        controllerCopy1.parmArgs(_args);
        controllerCopy1.startOperation();
        
        //2nd report
        YourControllerClassName controllerCopy2 = new YourControllerClassName();
        controllerCopy2.parmReportName(ssrsReportStr(ReportName,Design2));
        controllerCopy2.parmArgs(_args);
        controllerCopy2.startOperation();
    }

    Also the 2nd design will be called after closing the 1st design. To overcome this you need to override the dialogShow() method and call form detach.

    Refer to the below link,

    https://community.dynamics.com/365/financeandoperations/b/microsoftdynamicsaxextensions/posts/open-multiple-instances-of-report-at-same-time

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: AX2012 Print a few copien of own SSRS report

    So you need to see the same report in multiple windows right?

    if yes can I know what is the reason?

    Thanks,

    Girish S.

  • Andriej Profile Picture
    on at
    RE: AX2012 Print a few copien of own SSRS report

    Hi Girish,

    this same report with this same data but as copies. i.e.:

    screenshot_5F00_1963.png

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: AX2012 Print a few copien of own SSRS report

    Hi Andriej,

    Can you elaborate your question?

    what do you mean by printing ssrs report on a few copies in one window?

    Thanks,

    Girish S.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans