I am currently upgrading an application (written in ASP) which used Crystal Enterprise 8.5 to use Crystal Server XI and I'm trying to get the run time parameters to display. I don't want to pass anything to them I just want them to dislay before the report is opened in the report viewer. At present, the report is loading but because the run time parameters are not being filled in, it displays nothing.
The old code used the following:
<% For n = 0 to lngNumParam - 1 %>
<% If (Trim(Request.QueryString "param" & CStr)) <> "") Then %>
webSource.AddParameter "prompt<%=CStr%>", "<%=Trim(Request.QueryString("param" & CStr))%>"
<% End If %>
<% Next %>
CRViewer.ReportSource = webSource
I don't think webSource.AddParameter is supported anymore but if it is, this code just doesn't work now. Have tried, in vain, to find out how to rewrite this for Crystal Server XI. Any tips welcome. Have been trying this for days.
The old code used the following:
<% For n = 0 to lngNumParam - 1 %>
<% If (Trim(Request.QueryString "param" & CStr)) <> "") Then %>
webSource.AddParameter "prompt<%=CStr%>", "<%=Trim(Request.QueryString("param" & CStr))%>"
<% End If %>
<% Next %>
CRViewer.ReportSource = webSource
I don't think webSource.AddParameter is supported anymore but if it is, this code just doesn't work now. Have tried, in vain, to find out how to rewrite this for Crystal Server XI. Any tips welcome. Have been trying this for days.