Link to home
Start Free TrialLog in
Avatar of BostonMA
BostonMAFlag for United States of America

asked on

How to create a Constant in SSRS 2005

In SSRS 2005's Expression window there is a branch on the tree called Constants.  How do I create a string constant?
SSRS-constants1.JPG
Avatar of SNilsson
SNilsson
Flag of Sweden image

From MSDN:
____________________
Constants
Select the Constants node to define expressions that include a constant value. Constants are used to specify color, font, and enumerations.

Not all items will support expressions that can be set to a constant. If a property cannot be set to constant value, the description provides this information.
__________________

So depending on what item you want to use an expression on it may or may not be available and you cannot create the yourself.

Avatar of BostonMA

ASKER

My question still is, how do I actually define the constant?  There doesnt seem to be a place to do it, ie in my screen shot, where do i click to make a constant? Everytime I make a text box it just says 'No constants are availible for this propoperty'
Yes thats what It stated in my previous post "Not all items will support expressions that can be set to a constant", so you cant make a constant only use those that are available.

Like in the screen clip below using it on a property where its allowed.


constants.png
Everytime I look at an expression window in our reports, I never see the color options that you have.  Can you give me an example of what object your looking at and what 'Custom' and 'Web' are?
The property I took a screenshot from was the background color of a cell in the report.
The Custom can be any color, the web are 'aproved' save colors to use for the web.

Try it on a font property and you will see a different set of constants.
ASKER CERTIFIED SOLUTION
Avatar of shorak
shorak
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial