PDA

Click to See Complete Forum and Search --> : Crystal Reports in VB6


ielashi
Jul 30th, 2006, 09:04 AM
I am recently working on an application to interact with databases and generate reports from the data collected. I have used crystal reports before, but I think it's too much of a hassle for the user to need the program to view the reports.

After some further reading and seaching on this forum, I realised that the Crystal Reports viewer will fill the need. I managed to make the viewer display the report, but there are still a few things I need to tackle.

I want to know how can I specify the database address through the VB code. Also I wanted to know how can I make queries in VB code to be executed in the report.

I am using VB 6 and Crystal Reports 10.
Any comments/suggestions would be greatly appreciated. :)

Utpal Mehta
Aug 2nd, 2006, 07:41 AM
It is better you use the ODBC connection to use the CR.
You can use the recordselectionformula property of the
CR from within VB code to make queried report...

Utpal Mehta

mabbas110
Aug 10th, 2006, 04:08 AM
Hi,
I have one suggestion for you , that if u use version 8.5 of crystal report with VB 6.0 or higher for .NET . it will be more feasible and flexible.

ielashi
Aug 10th, 2006, 10:12 AM
No problem. I almost got it here. :)