473,324 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

crystalreportviewer always null

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
1 2121
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cuperman | last post by:
Hi All, I am pretty new to Crystal coding and trying to enhance a report that we have created in .Net I have a CrystalReportViewer control which loads a report from Cache memory. This all...
2
by: suicidaltendencies | last post by:
Does anyone know how to fix this problem. I'm trying to create some Crystal Reports Thanks Harol Compilation Error Description: An error occurred during the compilation of a resource required...
3
by: Reza Nabi | last post by:
Hello I created a very simple page just to load a crystal report which was working just great Code started throwing the following exception, after I installed crystal report 9 advanced edition ...
0
by: Marc Callec | last post by:
I'm trying to create an instance of the CrystalReportViewer control within my class in an attempt to return the rendered HTML back to the consumer of the class. Because I haven't added the...
4
by: Stan Sainte-Rose | last post by:
Hi, How to capture the CrystalReportViewer Events. I need to do some actions when the user clicks on the close and print icons. By the way, I thank you for your contributions... Stan
1
by: Bob | last post by:
I'm asking here because I've posted this question in the crystal newsgroup, waited two weeks, and got zero response. I would be very appreciative if someone could shed some light on this problem...
6
by: tg | last post by:
I've been trying for several days to get a Crystal report to display in a Windows form in VS 2003. I'm not new to .NET, nor to Crystal, but I've never tried to display a report until now. I'm...
3
by: roopsd | last post by:
I am using VS.NET 2003 with crystal reports XI release 2. I get a runtime error at the following line: oRptForm.crystalReportViewer.ReportSource = oReport An unhandled exception of type...
0
by: roopsd | last post by:
Hi Thank you for yuour help. I am using VS.NET 2003 with Crystal XI r2. I am getting NullReferenceException at the following line in my code. oRptForm.crystalReportViewer.ReportSource =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.