Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Error when using Subreport Links Post Reply Post New Topic
Author Message
rodri_ogri
Newbie
Newbie
Avatar

Joined: 05 Feb 2009
Location: Bolivia
Online Status: Offline
Posts: 2
Quote rodri_ogri Replybullet Topic: Error when using Subreport Links
    Posted: 05 Feb 2009 at 2:34pm
hi,
 
I have developed a report with CR2008 and .net . It's very simple, on the main report I have a linked subreport by an ID. I'm sure the report should work fine, but when i call it from a windows form app, i have the following exception message:
 
System.InvalidCastException: Unable to cast object of type 'CrystalDecisions.Shared.ParameterField' to type 'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition'.
 
an this problems pops up when i just create the report object. I mean that the report itself cannot be created. This problem comes because of the subreport linking, Now, I'm not sure if there's something to do with the binding process or the assembly version of CR.
 
any suggestion?
 
regards
IP IP Logged
rodri_ogri
Newbie
Newbie
Avatar

Joined: 05 Feb 2009
Location: Bolivia
Online Status: Offline
Posts: 2
Quote rodri_ogri Replybullet Posted: 06 Feb 2009 at 8:52am
Solved.
 
Well, after I create the report object,  i'm performing a loading of the parameters for the report from the reportInfo object (an initiallization of parameters).
 
When Iterating over the report's parameter collection with a foreach statement, i'm using a ParameterFieldDefinition type, but it appears that crystal uses another type for link parameters.
 
Thanks for your help
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.016 seconds.