|
-
Dec 20th, 2006, 05:03 AM
#1
Addicted Member
Re: "Adding subreports at runtime"
Ok , i have also not find any thing related to adding sub reports at run time. For ur scenario u have to first decide that how many choice will u give it to the user and then u have to work it programtically that u need to suppress one report and show other or use the formula fields and etc etc.
But this will be really a tough task.
Thanks and Regards,
Muhammad Abbas
-
Dec 20th, 2006, 10:47 AM
#2
Thread Starter
Addicted Member
Re: "Adding subreports at runtime"
Thank for your advice.
Actually I managed to get the report constructed programatically. What I did is create all the sections as separate reports that can run individually.
Then using the xmlWriter I create a main rdlc file (xml file) , from scratch and insert the the subreports as selected by the user, and in the order that the user selects.
Unfortunately this is not an easy task, and that is not due to the programming side but due MS problems. An example is that the ReportViewer cannot find the subreport if you add an extension to the Reportname, ie mySubreport.rdlc does not work but mySubreport does.
Another problem is that the assembled main report has to be created in the directory where the subreports exist, as the route of the subreports gets taken from the path specified by the main report.
Anyway with a lot of pain and suffering it works.
Control Data Systems
www.members.shaw.ca/cdsystems
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|