Sunday, March 11, 2012

Can inherited from a custom report

I must make many report in my project.
All the reports must have header of company name and footer of page number.
Can I desgin a template custom report, then all reports in my project are
inherited from it?Create a Report with the Bare Bones on it for your template and then save
that RDL in
C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\PrivateAssemblies\ProjectItems\ReportProject
This "template" will now pop up in your context menu when you select to add
a new item to your report project.
Hope this helps.
"ad" wrote:
> I must make many report in my project.
> All the reports must have header of company name and footer of page number.
> Can I desgin a template custom report, then all reports in my project are
> inherited from it?
>
>|||David,
Great idea.. I have been just opening up a report I named template.rdl and
viewing the code and copying it into the new report. Your method is slicker.
Another option is not to do any formatting until the end and run the .rdl
(which is XML) through a custom app that adds the formatting and such. This
does require a good understanding of XML and the RS spec though. I recommend
the template option.|||This is great but what if you need to change something in the template. None
of your previous reports will inherit the change.
I wish we could use a stylesheet and place it on the webserver and have the
reports pickup the formatting from that.
"Craig" wrote:
> David,
> Great idea.. I have been just opening up a report I named template.rdl and
> viewing the code and copying it into the new report. Your method is slicker.
> Another option is not to do any formatting until the end and run the .rdl
> (which is XML) through a custom app that adds the formatting and such. This
> does require a good understanding of XML and the RS spec though. I recommend
> the template option.

No comments:

Post a Comment