1, code download: http://support.crystaldecisions.com/communitycs/filesandupdates/vbnet_win_simplepreviewReport.exe.asp? Recdnlreq = record & DNLPATH = VBNET_WIN_SIMPLEPREVIEWREPORT.EXE
2, use five types of reports for Viewer.Reportsource:
- Using the Report Name (via the text path) - Use the Report object (via the text path) - use the non-class Report component (via the text path and the ReportDocument ReportDocument1) - use the Report object (by report files that have been added to the project, such as: World Sales report.rpt) - Use strong type Report components () (via REPORTDocument World_sales_report1) Note: Report Components, "Toolbox" -> "Components" -> "ReportDocument"