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

VB .net and Crystal Reports 9

Status
Not open for further replies.

dinkzx11

Instructor
Aug 11, 2005
1
US
After calling a crystal report into .net , how do I
get the preview of the report. I have tried using the
refresh (f5) and this doesn't generate the preview.

Thanks
 
you need to add a crystal report viewer control and set its report source to the instance of your report
 
I did it like this...

Try

CrReportViewer1.ReportSource="C:\" & FileName & ".rpt"

CrReportViewer1.RefreshReport()

Catch
MsgBox("Report not found!")
End Try
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top