cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Parameters from .NET to CR2013

Former Member
0 Kudos

We upgraded from CR8.5 to CR2013 using VS2012 and cannot use the old way of passing parameters to the report. The way we passed them before was to use this code:

<asp:HyperLinkField DataNavigateUrlFields="LoadNbr"

DataNavigateUrlFormatString="~/reports/rmssalesreceiptnoprice.rpt?Prompt0={0}"

DataTextField="LoadNbr" HeaderText="Invoices No Price" SortExpression="LoadNbr" />

The users would choose a load number from a grid view list from SQL Server. We would like to have the same action to view a report using the new CrystalReportViewer in .NET

How can we translate the old way to the new way and pass the SQL load number to the viewer without having to type it into the parameter field?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hi Blaine:

See the following:

Crystal Reports for Visual Studio 2005 Walkthro... | SCN

(applies to all VS and CR versions)

Samples are here:

Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki

Developer Help files:

SAP Crystal Reports .NET SDK Developer Guide

SAP Crystal Reports .NET API Guide

And don't forget to use the search box in the top right corner. I find simple string like 'crystal net parameter date' give best results.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow us on Twitter

Answers (0)