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

Viewing Crystal Report

Status
Not open for further replies.

drimades

IS-IT--Management
Joined
Nov 8, 2004
Messages
221
Location
MK
I have a report in . NET called Crystal Report1.rpt created with the report expert (wizard). How can I view it (with the data in it) in a form from code?
 
Just drag a CrystalReportView control from the Toolbox onto a from. Then in code:

Dim CR1 As New CrystalReport1

CrystalReportViewer1.ReportSource = CR1

CrystalReportViewer1.Show()



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
I have .NET framework 1.0. I'm afraid it doesn't support CRViewer ...
 
I'm using the .Net framework 1.0 with a CR 10 application. It works fine.

I've also migrated it to CR XI and that test worked fine.

Make sure you have references to the CR objects set.

Editor and Publisher of Crystal Clear
 
Ok! Now I see the CRViewer. I've added it in Form1. How can I bind the report "C:\Documents and Settings\Administrator\Documenti\Visual Studio Projects\WindowsApplication18\WindowsApplication18\report1.rpt" to the CRViewer? If I write CrystalReportViewer1. (the name of my control) it doesn't give the usual options like ReportSource, Show, etc. ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top