Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Create Crystal Report at runtime Post Reply Post New Topic
Author Message
elie
Newbie
Newbie
Avatar

Joined: 18 Mar 2010
Location: Lebanon
Online Status: Offline
Posts: 1
Quote elie Replybullet Topic: Create Crystal Report at runtime
    Posted: 18 Mar 2010 at 12:45am
hi all,
 
i am using vb.net2008 to creating a crystal report during runtime.  i have a parametrized query ( select field1 from tablename where field1 = ? ) 
 
I am creating a new adodb.command and every thing is ok.
when i pass the command to crystal report  using the following
 
crReport.AddADOCommand( conn, com )
 
i got an error:
Failed to open a rowset ... wrong number of parameters.
 
Thanks for help
 
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 15 Apr 2010 at 3:26am
it would seem that the simpler solution, is to select the data you want into a dataset and set the datasource of the report to the dataset...and go from there.
 
HTH
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.