Last post Mar 03, 2011 09:46 PM by DKP1110
Feb 19, 2011 06:28 PM|DKP1110|LINK
I want to use a single Crystal report (.rpt) file for two actual reports, changing only the title and the data. I've got the data working, but I can't seem to get the title part right. I tried to follow this
tutorial, but when I do my report just disappears (whether I set the parameter or not). I created a "Report Title" special field and dragged it to my page header. Then I brought up the formula editor on the report title display string and clicked on my
title parameter. So the formula ends up being
I'm sure I'm probably just making a rookie mistake here. Can anyone provide any advice as to what I'm doing wrong?
Feb 21, 2011 10:47 PM|cnranasinghe|LINK
you can pass a parameter simply
Feb 24, 2011 09:14 AM|DKP1110|LINK
I don't think the passing of the parameter is really the problem. It's how to use the parameter value to update the report. I this case I want to know how to make the parameter value be used as the title of the report.
Feb 24, 2011 11:38 PM|cnranasinghe|LINK
Aproach is depending on logic you are appying
following thread discuss something similar
Mar 01, 2011 08:09 PM|DKP1110|LINK
This seems to work to use a parameter for record selection, but I'm interested in using a parameter to change the text in the report itself...in this case the title of the report. So, I need a way for a parameter to be assigned to a text object or maybe
the "report title" special field, but I can't seem to find a way to make the assignment in the formula editor.
Does anyone have any ideas?
Mar 03, 2011 09:46 PM|DKP1110|LINK
Looks like you do it by adding the special field "Report Title" to the report and then doing the following in the code:
MyReport report = new MyReport();
report.SummaryInfo.ReportTitle = "My Title";