I am using the following steps to implement Crystal Reports using the Pull Model:
1. Creating the .rpt file and setting the necessary database connections using the Crystal Report Designer interface.
2. Placing a CrystalReportViewer control on the. aspx page and setting its properties to point to the .rpt file.
3. Calling Databind method on the Page Load Event of the Code Behind file (.aspx.vb).
VB Code:
[B]CrystalReportViewer1.ReportSource = rptGL 'CrystalReportViewer1.SelectionFormula = strFormula CrystalReportViewer1.DataBind() CrystalReportViewer1.DisplayGroupTree = False[/B]
But the problem is that when I run .aspx page I can’t see the report file embedded into the web page!!!
The Error Msg I get is:
CrystalReportViewer- CrystalReportViewer1
Use the reportsource or the databinding property to specify a report source.
What mistake I am making and what should I do? I am working on an assignment and have to submit it on 5/7 so an Immediate response will be highly appreciated.
Looking Forward..


Reply With Quote