By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

crystalreportviewer always null

P: n/a
Hi,

I've declared the statement below in my form and somehow
crystalReportViewer1 is always null. Is there anything wrong with the
statement?

private CrystalDecisions.Windows.Forms.CrystalReportViewer
crystalReportViewer1;

Thanks.

Regards,
Jordan
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Did you declared it in the aspx file?

Put this in the aspx file:

<CR:CrystalReportViewer id=CrystalReportViewer1
runat="server"></CR:CrystalReportViewer>

Note, check if you have this line at the beggining of the line, include it
if not
<%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web"
Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304" %>

You can just double click the CrystalReportViewer component in the toolbox
and all the above will be included.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Jordan" <jo*****@37.com> wrote in message
news:9a**************************@posting.google.c om...
Hi,

I've declared the statement below in my form and somehow
crystalReportViewer1 is always null. Is there anything wrong with the
statement?

private CrystalDecisions.Windows.Forms.CrystalReportViewer
crystalReportViewer1;

Thanks.

Regards,
Jordan

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.