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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integrating Crystal Reports and VB

Status
Not open for further replies.

catalina36

Programmer
Aug 28, 2000
36
US
I’m a newbie to both VB6 and Crystal Reports but I need to understand how these two tools can be used together. What I’m looking for is an simple overview describing how to integrate reports created in Crystal Reports into a VB application. Can anybody provide me with this information or point me to an appropriate source?

TIA
 
1. in VB, go to 'Project' / 'Components' and check the box for 'Crystal Report Control' - click OK
2. in code or at design time, set the 'ReportFileName' property of the control to a previously created and saved report - use the reports full path if it is not in your application folder - for a report that is created based on a query in a database.
3. set the action property to 1 (CrystalControl1.Action = 1) to view the report.

To extend this, before you set the action property to 1, change the query that the report is based on in VB code, so that your report does not report on the same data each time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top