|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, May 30, 2012 7:15 PM
Points: 22,
Visits: 121
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, April 16, 2013 7:42 AM
Points: 12,
Visits: 58
|
|
Hi Boyan Penev, why do you need parameters? Your Resultset of the StoredProcedure has only one row containg the value of the colors. So, my meaning is that you can use an expression like this in the color-Property: =First(Fields!HeaderColour.Value, "usp_CTL_Get_Report_Colours")
Then also the disadvantage of the parameters is eliminated.
With kind regards,
Markus Krenn markus.krenn@plus-it.de
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: 2 days ago @ 1:32 PM
Points: 285,
Visits: 1,197
|
|
Interesting article... would it be possible to post the .rdl xml of an example to this discussion thread. I can't quite visualize it based on the article alone.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 08, 2009 6:29 AM
Points: 1,
Visits: 2
|
|
| Why not store the properties in an XML document (database or filesystem) to allow for a larger range of properties and values to be defined without having to modify the database each time we want to centralize a style?
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Friday, April 26, 2013 11:57 AM
Points: 708,
Visits: 660
|
|
Markus - I get a scope parameter error when I try this. sp calls direct might not be allowed
correction ---- I got it to work, the second parameter is the name of the dataset, not the name of the sp. Good idea Markus.
Dan
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, July 23, 2009 11:32 PM
Points: 3,
Visits: 13
|
|
Nice one Boyan. Always good to store your corporate colours / fonts / formats etc in a centralised location. You suggested a simple .Net management screen to potentially create, update, delete the "stuff" in your tables. An alternative (although not as sexy) which could be useful is to use Report parameters to perform this functionality to avoid the need for a .net app. Thats my 2c anywho. Keep up the good work dude .
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Yesterday @ 10:43 PM
Points: 79,
Visits: 158
|
|
in order to get around the problem of one dataset per report item I was thinking you could just create a table valued sql function and join it to your report resultset, just format the function output to be one row with multiple col's.
Then you could just pick the fields and setup the styles
M
Kindest Regards,
Martin
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, November 02, 2012 9:53 AM
Points: 13,
Visits: 71
|
|
markus.krenn (3/26/2009) Hi Boyan Penev, why do you need parameters? Your Resultset of the StoredProcedure has only one row containg the value of the colors. So, my meaning is that you can use an expression like this in the color-Property: =First(Fields!HeaderColour.Value, "usp_CTL_Get_Report_Colours")
Then also the disadvantage of the parameters is eliminated.
With kind regards,
Markus Krenn markus.krenn@plus-it.de
This would be fine if it was only to be used in the report body, but you cannot access datasets like this for headers and footers hence for these you would have to store them in parameters (or in hidden textfields in the main report area that were then accessed by name from the header and footer).
BR,
Mark
SQL Novice - Here to learn.
|
|
|
|