Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How print multiple cop...
Finance forum
Suggested answer

How print multiple copies of SSRS Report

Posted on by 477
On sales Invoice Report generation, three copies should be generated with following texts 

Original for Buyer

Duplicate for Transporter

Triplicate for Supplier
 
and solution or lead how can we achieve this in SSRS report , thanks
  • Suggested answer
    Tanay_08 Profile Picture
    Tanay_08 12 on at
    How print multiple copies of SSRS Report
    Hi Sachin,
    for getting multiple copies of the SSRS report :
    1) You need to create multiple reports designs
    2) Add a for loop in the main method of controller class of SSRS report
    3) add the report design as per your copies sequence and then run startOperation() method of controller class.
     
    I am attaching sample code for your referral:
     
    for (i=1;i<=2;i++) //To show the print for 2 times
    {
    controller = new ReportController();
    if (i == 1)
    {
    controller.parmArgs(_args);
    controller.parmShowDialog(false);
    controller.parmReportName(ssrsReportStr(ReportName, OriginalDesign));
    controller.parmShowReportViewerParameters(false);
    controller.startOperation();
    }
    else if (i == 2)
    {
    controller.parmArgs(_args);
    controller.parmShowDialog(false);
    controller.parmReportName(ssrsReportStr(ReportName, DuplicateDesign));
    controller.parmShowReportViewerParameters(false);
    controller.startOperation();
    }
    }
     
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    How print multiple copies of SSRS Report

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans