Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Parameter Fields in Crystal XI

Status
Not open for further replies.

joeval

Programmer
Aug 1, 2008
1
IE
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(n))) <> "") Then %>
webSource.AddParameter "prompt<%=CStr(n)%>", "<%=Trim(Request.QueryString("param" & CStr(n)))%>"
<% 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top