Print Page | Close Window

Create Crystal Report at runtime

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
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=9419
Printed Date: 04 May 2025 at 11:25pm


Topic: Create Crystal Report at runtime
Posted By: elie
Subject: Create Crystal Report at runtime
Date 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
 
 



Replies:
Posted By: lockwelle
Date 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



Print Page | Close Window