Tuesday, March 27, 2012

Can we change the style of reports just like css of html

it is stupidity to change color and background for each reports.."Template" report is provided so that you fix up all the things you require
for each report and then copy in a particular folder, so whenever you go for
creating a new report this template can be selected.
Amarnath
"lieshengren" wrote:
> it is stupidity to change color and background for each reports..
>
>|||thanks very much.
My friend give me another way to change the color some other options of
report.
"write the vb expression @.column color, put color configuration in database
"...
oh . so it is hard to write first time. but easy to change.
User's information is about 1000 reocords in the system, so i build a table
to save some color schemas then let user to save a schema to session
information which they want .
^_^!...
but low performance when there is a big user's information.
"Amarnath" <Amarnath@.discussions.microsoft.com> wrote in message
news:14D750CC-8A50-4CB6-A4FoA-D639AE6AA2DD@.microsoft.com...
> "Template" report is provided so that you fix up all the things you
> require
> for each report and then copy in a particular folder, so whenever you go
> for
> creating a new report this template can be selected.
> Amarnath
> "lieshengren" wrote:
>> it is stupidity to change color and background for each reports..
>>|||If you want to avoid the performance issue you could do something like this
instead of the dynamic vb expression:
* -- create the original report with a custom property indicating the "style
element" -- would be the class -- of as many individual textboxes and other
layout items as you want
* -- when a user wants to assign a color scheme, load the original RDL up as
XML and use the class information to adjust the color and any other
attributes you support in the RDL metadata. You can do this through the DOM
if you like -- I do it through XSLT but people here are probably tired of
hearing about that <g>. It doesn't matter how you implement it.
* -- save a copy of the RDL to a new name -- include a theme ID or something
concatenated with the original report name. Save the user's preference.
* -- at runtime, look up whether the user has a theme associated with that
report (or, if the user picks one theme for all reports, look up to see if
this user has picked a theme). If they have, swap the name of the report to
run for the correct "themed" version.
Now you have a very small hit at runtime and a very flexible reporting
application -- which can support anything that CSS can support and that is
also supported by RDL. You can choose to support more attributes over time,
if you like, even if you just start with color.
>L<
"lieshengren" <lieshengren@.163.com> wrote in message
news:uFhCZT7hHHA.3472@.TK2MSFTNGP04.phx.gbl...
> thanks very much.
> My friend give me another way to change the color some other options of
> report.
> "write the vb expression @.column color, put color configuration in
> database "...
> oh . so it is hard to write first time. but easy to change.
> User's information is about 1000 reocords in the system, so i build a
> table to save some color schemas then let user to save a schema to
> session information which they want .
> ^_^!...
> but low performance when there is a big user's information.
>
> "Amarnath" <Amarnath@.discussions.microsoft.com> wrote in message
> news:14D750CC-8A50-4CB6-A4FoA-D639AE6AA2DD@.microsoft.com...
>> "Template" report is provided so that you fix up all the things you
>> require
>> for each report and then copy in a particular folder, so whenever you go
>> for
>> creating a new report this template can be selected.
>> Amarnath
>> "lieshengren" wrote:
>> it is stupidity to change color and background for each reports..
>>
>sql

No comments:

Post a Comment