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!

(New to WebForms) Crystal Reports Question

Status
Not open for further replies.

JPdev

Programmer
Mar 30, 2004
8
GB
Hello,

I'm trying to set up a crystal report viewer in a web form using vb.net/asp.net. I'm finding that the following line

CrystalReportViewer1.ReportSource = "C:\\report_1.rpt"

followed by

CrystalReportViewer1.Refresh()

Is failing with...
Object reference not set to an instance of an object.
etc...

Does anyone have any tips on how to setup a simple Crystal Report viewer in a web form. I've done this before in Windows Forms and not had trouble?
 
JPdev: I haven't used Crystal Reports but have heard it is pretty good stuff; here's an idea you might try. Several times in the past the "path" has failed (for other reasons) because it wasn't set to the "ServerPath". Just as an aside try:

Server.MapPath("myReports\report_1.rpt;"))

Again, this may not help but it worth a shot. Post back; this should be simple enough to figure out.
 
Using CR in a web form is NOT as simple as using it in a Windows app. I have struggeled with it in the past. Luckily it is better in VS2005.
There have been a few threads in here that I have responded to regarding CR. Also, there are many examples if you Google and on BusinessObjects website.

Jim
 
JPdev,

jbenson001 is correct there are lots of threads related to this. I have spent alot of time working with CR and asp.net and it's not as straight forward as you may think.

take a look at these links. this should get you started.



if you get stuck with code etc. post back here and you should get results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top