Print Page | Close Window

connect subreport with stored procedure

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3425
Printed Date: 08 Apr 2025 at 11:51pm


Topic: connect subreport with stored procedure
Posted By: aussie_1968
Subject: connect subreport with stored procedure
Date Posted: 12 Jun 2008 at 5:27pm
hi,
 
i have a report with a subreport.
the main report has an ID wich should be used as the parameter of the stored procedure for the subreport.
 
what i have in the subreport so far are the vars I32VesselID (stored proc) and Pm-......ID (vesselId of the main report).
how do i set the var of the stored proc to be that of the main report ?
 
under CR->Report->SelectionFormula->Record i have tried
{?I32VesselID} = {?Pm-.....ID}
but it still sais "ParameterFieldCurrentValueException was unhandled by user code" - "Missing parameter vaues"
 
has anyone got an idea ?
 
thanks in advance
   Martin
 
 
PS.  using VS 2008



Replies:
Posted By: Ebyoct82
Date Posted: 16 Aug 2008 at 8:50pm
Hi
    Right click on sub report link in main report. select 'change subreport links....'. Select The field from available fields. Then link with corresponding parameter filed of  subreport.



Print Page | Close Window