For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > March 2006 > RefreshReport always prompts for Parameter









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RefreshReport always prompts for Parameter
Michael Reukauff

2006-03-29, 7:06 pm

Hi

I am using CR 11R2 with VS2005 and I have the following problem:

I build a report which is calling a stored procedure on our SQL-Server. The
SP has one parameter (a date). When I call the report for the first time,
all went well. The report is shown with the correct date. Now I want to
change the date because the user requested the report for another date, I
set the new date in the report like that:
myReport.SetParameterValue("@ReportingDate", (DateTime)txtDateTime.Value);
Then I do a reportViewer1.RefreshReport(); but now CR always asks for the
parameter! How can I set the parameter, that CR will not ask me again,
because it is already set?

Thanks a lot in advance
Michael


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com