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

How to view a crystal report in a vb program

Status
Not open for further replies.

nwb1

Programmer
Apr 28, 2004
39
GB
Hi,
Can anyone help me please?

I need to show a report created using c/reports (V8) and need to show the report in my program when use click on the Show report button.

I have added CRViewer control (crviewer.dll) to the project but not sure how to display the report.

Thanks in advance
 
I use this with an older version of Crystal Reports.

Private Sub Command4_Click()
CrystalReport1.ReportFileName = "c:/Masonic/rptperpetualmembers.rpt"
CrystalReport1.Action = 1

End Sub
Masonic is the name of the folder that contains the report built with Crystal reports, the 1 will display it and you can print from there. Don't know how it works with the newer versions tho. As you can see it is executed with a command button on a Regular VB 5 or VB 6 form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top