Symptom
- Parameter Name in prompt window
- Parameter Name displays in the upper right corner of the parameter prompt window
- How to not display the parameter name in the Parameter prompt
Reproducing the Issue
- Crystal Reports XI
- Crystal Reports XI R2
- Crystal Reports 2008
Resolution
There is no option to remove the parameter name from the upper right corner of the prompt window in Crystal Reports, but you can use one of the following workaround:
- Change the color of the text displaying the parameter name to the same color as the background in the css page for the prompt window
OR
- Use spaces as the parameter name
Change the color of the text displaying the parameter name to the same color as the background in the css page for the prompt window
This workaround will affect all prompts for all reports. To modify the css page for the prompt window:
- Go to the following folder:
In Crystal Reports XI:
C:\Program Files\Common Files\Business Objects\3.0\crystalreportsviewers\prompting\css
In Crystal Reports XI R2:
C:\Program Files\Business Objects\common\3.5\crystalreportsviewers115\prompting\css
In Crystal Reports 2008:
C:\Program Files\Business Objects\common\4.0\crystalreportsviewers12\prompting\css
- Copy the file: promptingengine_default.css
( It is always good to have a backup copy of the original file, in case the file is not modified correctly and you want to go back to the default values )
- Open the file: promptingengine_default.css in notepad
- Search for: TextRight
It should bring you to the following lines:
.pePromptUnitHeaderTextRight
{
background-color: #E4E4EC;
color: black;
font-family: Arial, Verdana;
font-size: 8pt;
}
- Change the font color for the text from black to the same color used as the background color.
.pePromptUnitHeaderTextRight
{
background-color: #E4E4EC;
--> color: black;
font-family: Arial, Verdana;
font-size: 8pt;
}
By default, the background color is "#E4E4EC".
Set the value for "color" from "black" to "#E4E4EC"
Now, it should look like:
.pePromptUnitHeaderTextRight
{
background-color: #E4E4EC;
color: #E4E4EC;
font-family: Arial, Verdana;
font-size: 8pt;
}
- Save the file.
Now, when refreshing reports that conrtains parameter, you will no longer see the parameter name in the upper right corner.
Use spaces as the parameter name
If you want the parameter name to not display for specific reports, another workaround will be to name the parameter with spaces.
- Advantage: Only affect one report
- Disadvantage: Difficult to update a report that have more than one parameter as the parameter name look like: {? }, {? }
To change your parameter name with space:
- In Crystal Reports, in the "Field Explorer" window, right click on your parameter name, and select "Rename..."
- Replace the parameter name by one or more spaces.
Now, when refreshing the report you will not see a parameter name in the upper right corner of the prompt window.
Keywords
parameter name, display, remove parameter name, prompt window, crystal reports , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To