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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hey you 'Experts' Out There -Part 2

Status
Not open for further replies.

ggeorgiou

Programmer
Oct 19, 2001
12
CY
Sorry for not be very clear in my initial posting of the problem.

I am using VB.net and I want to use the new CrystalReportViewer that comes with CR 9 in order to view reports already developed using CR 9 development system.

However CrystalReportViewer in contrast to CRviewer and CRviewer9 has an absolutely stupid Parameter dialog where you have to go through each parameter one by one via the NEXT button, instead of being able to pick and choose which parameter you want to change the default value, as is the case with CRviewer and CRviewer9.In addition, it does not display the description associated with each default parameter value.
Naturally, in any parameter dialog that you write, you want to show to the user the default values and the description for each default value, that the developer of the report specified originally.

This is my problem because via the ReportDocument class I can get at all the information I need about the parameters apart from the description that is associated with each default value.

George Georgiou

 
George,

I probably should not even respond, because I have no idea what the CrystalReportViewer is like, so I'm not sure whether this is possible. But, this works in 8.0 to set up the default parameter options, so just in case it helps:

Write a report for your default options which concatenates the value and description fields, e.g. {@custIDname},

totext({Customer.Customer ID},0)+" "+{Customer.Customer Name}

Export to wordpad, remove the "", exit, and import as your parameter default list. This now populates your "value" section with the value and description.

Create the same formula in your formula editor and then in your select statement use:

{@custIDname} = {?CustIDName}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top