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

Using Crystal Reports 8.5 in Visual Basic 6.0

Status
Not open for further replies.

bidra

Programmer
Joined
Feb 28, 2002
Messages
31
Location
DE
Hi,
I am working with VB6 and have lately installed Crystal Reports 8.5.
To use a report created with CR 8.5 in an VB6 application I went to the VB Project menu/Components selecting Crystal Report Viewer Control.
Thus the Crystal Report Viewer was added to my
VB-toolbox and I placed the icon on the VB-form.
But how can I get it connected with my report? The ReportSource property doesn't accept the string with path and filename of the .rpt file.
Do I have too use a different property or am I totally wrong at all ?

Many Thanx in advance
Bidra
 
The Viewer is used to display the report. You need a Report object defined in your VB code. Then you attach the Report object to the Viewer.

Check out the FAQ on Data Access and the whole directory of VB examples on the Crystal CD.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top