Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: Subreports & Linked Parameters Post Reply Post New Topic
Author Message
Dave P
Newbie
Newbie


Joined: 29 May 2007
Online Status: Offline
Posts: 13
Quote Dave P Replybullet Topic: Subreports & Linked Parameters
    Posted: 25 Jul 2007 at 1:50am
OS:        Windows XP Professional
Crystal:  Crystal XI Developer Edition (SP2 & latest monthly hotfix)
Dev Env: Visual Studio .NET 2003 Professional (.NET Framework v1.1.4322)
 
I have a report which contains 1 subreport. This subreport has 2 parameters linked to the main report. 
 
I have some ASP.NET code to loop through the parameters in the main report and populate certain ones with pre-defined values. The problem I encounter is that the linked parameters in the subreport return false from the IsLinked function even though they are in fact linked, and so expect a value to be entered by the end user.
 
Any reason you can think of for this, as I've checked in the Subreport Links screen and the links are set up correctly?


Edited by Dave P - 25 Jul 2007 at 1:53am
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 25 Jul 2007 at 8:53am
I usually look at the parameter name when I work with linked parameters in code. Parameters used to link a subreport start with "PM".
 
-Dell
IP IP Logged
Dave P
Newbie
Newbie


Joined: 29 May 2007
Online Status: Offline
Posts: 13
Quote Dave P Replybullet Posted: 25 Jul 2007 at 9:20am
Well I finally got to the bottom of it. Apparently it was an issue with Crystal XI Release 1 that the ParameterFieldDefinition.IsLinked function always returned false. I went to the Business Objects site and downloaded the Release 2 Build & SP2 (a nice 1.03Gb download). Once updated the problem was resolved. It has also solved other problems I was experiencing, one being where as soon as I dropped a boolean parameter onto a report and ran it via the report viewer, I got an exception. It was fine with every other type of parameter though?!!
Anyway, everything seems fine now (fingers crossed).
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.