General discussion


Connecting Crystal Reports 8.5 from VB

By canzee2000 ·
How do i connect and use crystal reports vs 8.5 from visual basic 6.0 applications.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Miss Kitty In reply to Connecting Crystal Report ...

In your vb project, you need to add Crystal reports in your components area; then you need to add a Crystal report control and,if you are going to have the user use the viewer, a Crystal Viewer Control. On the form that you will use to call in the crystal report, here is an example of the code that you need to add:

Dim crxApplication As New CRAXDRT.Application
Public Report As CRAXDRT.Report
Dim crxDatabaseTable As CRAXDRT.DatabaseTable
Dim crxParameterField As CRAXDRT.ParameterFieldDefinition
Dim crxFormulaField As CRAXDRT.FormulaFieldDefinition
Set Report = crxApplication.OpenReport _
("E:\PLTERA\CRYSTAL REPORTS\HAULER REPORTS\Contract Haulers Report.rpt", 1)
frmViewer.Show vbModal

This should be enough to get you started.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums