Crystal Report parameter prompt?

Posted by Laghaterohan under Regular Expressions on 9/24/2010 | Points: 10 | Views : 4945 | Status : [Member] | Replies : 1

I have crystal report wherein i pass parameter to it. Rather i have set the parameter field and it ask me to enter the parameter value. ex. Roll No : xxx . When i enter the Roll No my report is displayed accordingly.
However, After that if i wish to view report of other Roll Nos i cant do that as the prompt to enter the Roll No is no more visible. What is the cause for the same? I want the prompt to stay up on my page and only the report that displays below should change as per the parameter provided( read: Roll No). How to do this?

Please do let me know...

Secondly, how to format the Date value field in the crystal report? It displayes the time as well as date. I dont want time to be displayed. I do not get option to format the date.

Wating for your early reply.

Rohan Laghate

Best Regards,
Rohan Laghate


Posted by: Abdulhaknet on: 10/27/2011 [Member] Starter | Points: 25

Hi Friend,

mention in code that for each passing parameter you metion "HasCurrentValue = true".

For reference sample code is given below
ParameterField Pramfield = new ParameterField();
Pramfield.Name = "Failur_Type";
Pramfield.HasCurrentValue = true;

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response