Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Record sets to Crystal Reports 4.0 1

Status
Not open for further replies.

chrispchenry

Programmer
Nov 12, 2002
16
CA
Hey,
This program i've been working on is still being a pain. What i hate most is how the SQL syntax is different for VB and CR.

How would I go about setting a recordset in VB and passing that recordset to CR4.0? Thus making the report generated display only the information in the recordset.

Thanks
 
You can pass an ADO recordset from VB directly to a Crystal report by using a data definition file (.ttx).

Here is the information link at the crystal web site.


Basically you are using ADO to create a specific database that is part of the crystal .rpt file. You then feed this 'database' with an ADO recordset and print the report.
This method does not embed the report as part of the exe. So you will have to include them manually with any setup package. It also eliminates Crystal Reports from calling your database, which can free up a busy database.

I use this method often without problems. Thanks and Good Luck!

zemp
 

And for CR version 7 users, this method will work as well. [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top