Cannot see a Crystal Report in ASP.NET

M

Mike Pettet

I've just started using .NET and cannot create a basic Crystal Report.

I have created an aspx page with a CrystalReportViewer web form on it.
I defined (DataBindings)->ReportSource as the custom binding
expression "C:\stats.rpt" [The double quotes are part of the string]
which is a valid Crystal Report and this appears successfully on the
Design view with the correct columns.

However, when I try to see this page on the web, I get the error "Use
ReportSource or DataBindings property to specify a report source."

I have read similar posts but not found any solutions (e.g. use
C:\\stats.rpt or C:/stats.rpt) to this basic problem. Do you know what
is wrong here?

Thanks for any replies!

Mike
 
B

Brian Bischof

Call the report.DataBind() method in the forms Load() event.

HTH,
Brian Bischof

A Crystal Reports.NET book for programmers? Its free!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings for every concept presented

http://www.123aspx.com/redir.aspx?res=30160
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top