11 Answers, 1 is accepted
We have already received and logged a number of similar request so I hope we will soon have the chance to work on this.
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We haven't had the time to work on this functionality yet, and it is still in our TODO list.
Sorry for the temporary inconvenience.
All the best,
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
what is the continuation of this topic?
You can combine multiple reports into a single document or to combine multiple instances of the same report with different settings into a single document for preview, print and export. In both cases, the solution would be to create a ReportBook.
For more information, please check the following articles:
- Report Book report template
- How to: Create a Report Book at run-time
An example is provided in ReportBook.cs file located in product installation folder (C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples\CSharp\ReportLibrary\ReportBook).
I don't have this example on my computer: (C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples\CSharp\ReportLibrary\ReportBook). Is there any way to get this example?
I have not practise in configuring ReportViewer.html. I need strict example, then I can work further. Would you help?
I have finally found a place in report resolver, where I can replace report source of single report with ReportBook.
But, what I have no idea, how to approach, is:
how can I get parameters of report in that place?
One of the report parameter is set to multivalue=true and I transmit int.
For each of this array element, I want to generate report using same report file, but just with particular int parameter.
I hope for your help.
Hi, will you help me finally?
Using your advices, I menaged this:
And, now, goint into my report, I can create 5 same reports at once.
What I need is:
Read somewhere, (I thought in ReportViewer.html), report parameter name = 'myParameter1_MassReporting"
which is set (in trdx) as multiValue = true, the count of selected items of this parameter. And this value, named parameter1ItemsSelectedCount, put instead of the hardcoded 5 (report: reportName + "|5").
Then, I get as many reports printed, as many items of this multiValue parameter I selected.
The next, I want to put values of selected items into report parameter named myParameter1, which has multiValue set to false.
Each of the report instance should get particular value of seleted item.
Whould you help me this time?
Our examples are shipped with the installation of Telerik Reporting: Installing Telerik Reporting (step 2). YOu might have changed the default installation path. Please check where the Telerik Reporting is installed on your machine.
The parameters for the report book can be passed with the report source object as a string because inside a custom report resolver you will get only a reportId argument. To make this clear let's look at an example.
Let say we have one Dashboard report and we need to create a report book with two instances if this report with two different parameter values. For example, to provide 2001 as a value of the first report and 2002 as a value of the second report. Then in HTML5 report viewer pass all of the information in reportSource.report like:
Note that the parameter values passed directly from the viewer's ReportSource are applied to the report automatically by the Reporting Engine (by matching parameters' names) and cannot be accessed in the report resolver. Therefore, when creating ReportBook in a Custom Report Resolver it is necessary to pass the parameter values as part of the viewer's reportSource.report property.
I hope this helps.
Thank you for your answer. This example I understand well, and it works.
(Although I thought, it is not necessary to pass the parameters to resolver, but only the count of parameters and then in reportViewer fill the parameters.
But the main problem is: you have all the time static examples.
What I need and described one by one is:
1). I need to write a reportViewer function, in which I obtain my multiValue myParameter1 and I return the count of it. (THIS I DO NOT KNOW HOW TO APROACH)
2). I pass this count to resolver and for this count I produce this count of report instances. (this point I can do)
3). Again in reportViewer, parameter editor, I pass the particular multiValues to particular report instances. (this I potentially can do).
As result, I get the count number of same report generated, each one has its own parameter.
You static example does not solve my problem.
Indeed, often we provide static examples as they most clearly demonstrate the functionality of the reporting tool, e.g. there is less additional logic that is not relevant to the product.
Consider also sending a runnable project that demonstrates the scenario so that we can try to come up with a more particular example.