Announcements
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:
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.
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:
and
So one printout 1 of 2 and second 2 of 2 in this same window.
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,
Thanks,
Girish S.
So you need to see the same report in multiple windows right?
if yes can I know what is the reason?
Thanks,
Girish S.
Hi Girish,
this same report with this same data but as copies. i.e.:
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.
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator