Reporting Services Styles in a Database Table

  • Comments posted to this topic are about the item Reporting Services Styles in a Database Table

  • 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

  • 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.

  • 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?

  • 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

  • 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 :-).

  • 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

  • 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.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply