|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:42 AM
Points: 80,
Visits: 846
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, May 30, 2012 7:15 PM
Points: 22,
Visits: 121
|
|
There is another way to apply "styles" to a report - by storing the report attributes, such as colour, in a database table and then retrieving them in a data set - either together with the data or just as a separate data set. Then you can either use them directly as Fields collection items or by creating parameters, which can be used in any report element regardless of the data set assigned to it. This overcomes some of the limitations that are listed in the article.
Boyan Penev
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, March 09, 2012 1:44 AM
Points: 1,
Visits: 8
|
|
| I've never tried this but woulndt it be possible to have Custom Code refering to a external stylesheet that coult be used by multiple reports?
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:42 AM
Points: 80,
Visits: 846
|
|
| Indeed - and this is the subject of the next article in this series, which should be out next week!
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, March 12, 2009 10:38 AM
Points: 4,
Visits: 14
|
|
I have added all the custom code functions onto an external class and simply reference the class on all my reports and use whatever function I need, if changes are required I simply change and recomplie the function...
Quite useful for standard stuff such as Date format, company colours and so on....
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:42 AM
Points: 80,
Visits: 846
|
|
| Absolutely - this makes centralising styles really easy - and is handled in the third article in the series (where you will see how to add these classes to templates too)!
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 2:54 AM
Points: 328,
Visits: 1,848
|
|
Boyan Penev (2/26/2009) There is another way to apply "styles" to a report - by storing the report attributes, such as colour, in a database table and then retrieving them in a data set - either together with the data or just as a separate data set. Then you can either use them directly as Fields collection items or by creating parameters, which can be used in any report element regardless of the data set assigned to it. This overcomes some of the limitations that are listed in the article.
I was just about to post with the very same thing! Storing as much of the style properties in a database as possible... then styles can be updated without having to republish any reports
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 3:42 AM
Points: 80,
Visits: 846
|
|
| Thanks to both of you for this one - this is a very good idea that I have not covered it in this way in the following articles so would one of you like to post this as an addition to this "mini-series" to extend the tips and techniques offered?
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 12:43 AM
Points: 582,
Visits: 1,601
|
|
Nice article - nothing revolutionary, just good relevant practical advice on making life easier. Look forward to the next installments.
David McKinney.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 2:54 AM
Points: 328,
Visits: 1,848
|
|
Adam Aspin (2/26/2009) Thanks to both of you for this one - this is a very good idea that I have not covered it in this way in the following articles so would one of you like to post this as an addition to this "mini-series" to extend the tips and techniques offered?
I've not put it into action yet.
Coincidently It was yesterday when I was looking at methods of maintaining consistant colouring when using graphs. I ended up creating some tables and associating colours with categories so when several graphs/charts are on the same report the same category e.g. "bikes" will always be shown using the same colour e.g. "red". Then one legend can be used for several charts.
The concept should be farly easy to extend to other report properties. Image locations for branding fonts, font colors, weights etc... for consistant titleing colour schemes
The final adaptation ties in with using dynamic colours for graphs i.e. using hex values rather than the names for the colours. Doing it this way gives an option for starting with a base colour - defined as a hex value, then adding or subtracting to the RGB components to give a spread of colours from the base colour
PS. If you're benched at the moment then you've probably got a lot more time than me to work on an article ;)
|
|
|
|