473,396 Members | 1,724 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,396 software developers and data experts.

Crystal Rpts .NET 2003 - SetDataSource() and ReportSource unavaila

Here's a sample of my code for the web form that will display the report:

public class myClass: System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;

private void Page_Load(object sender, System.EventArgs e)
{
myDataSet mds = new myDataSet();
myClass mc = new myClass();

... code to fill DataSet here ...

// mc.SetDataSource(mds);
// CrystalReportViewer1.ReportSource = mc;
}
}

The last two lines are commented out because SetDataSource() and
ReportSource is not recognized or available through IntelliSense.

Why would this be the case? Are they specific to VS.NET 2005 and 2003 uses
something different?
Jan 19 '06 #1
3 3751
Just because something isn't available through Intellisense doesn't mean you
can't use it. That just means the compiler doesn't know about it at design
time.

Does MyClass inherit the ReportDocument object? If not, try that--this
should fix your problem. However, when you double-click to open MyClass.cs,
VS will throw an error about not being able to use the designer. To open
MyClass.cs, you should right-click and choose "View Code". This is VS being
too clever by half.

"ATroy" <AT***@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
Here's a sample of my code for the web form that will display the report:

public class myClass: System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;
private void Page_Load(object sender, System.EventArgs e)
{
myDataSet mds = new myDataSet();
myClass mc = new myClass();

... code to fill DataSet here ...

// mc.SetDataSource(mds);
// CrystalReportViewer1.ReportSource = mc;
}
}

The last two lines are commented out because SetDataSource() and
ReportSource is not recognized or available through IntelliSense.

Why would this be the case? Are they specific to VS.NET 2005 and 2003 uses
something different?

Jan 19 '06 #2
Thanks, Richard. I did what you suggested and I got SetDataSource(). However,
I am now getting this error:

'...OnInit(System.EventArgs)': no suitable method found to override

This would mean I should be inheriting from System.Web.UI.Page, but that
obviously won't give me what I need to work with. How do I manage this error?
"Richard Dudley" wrote:
Just because something isn't available through Intellisense doesn't mean you
can't use it. That just means the compiler doesn't know about it at design
time.

Does MyClass inherit the ReportDocument object? If not, try that--this
should fix your problem. However, when you double-click to open MyClass.cs,
VS will throw an error about not being able to use the designer. To open
MyClass.cs, you should right-click and choose "View Code". This is VS being
too clever by half.

"ATroy" <AT***@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
Here's a sample of my code for the web form that will display the report:

public class myClass: System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer

CrystalReportViewer1;

private void Page_Load(object sender, System.EventArgs e)
{
myDataSet mds = new myDataSet();
myClass mc = new myClass();

... code to fill DataSet here ...

// mc.SetDataSource(mds);
// CrystalReportViewer1.ReportSource = mc;
}
}

The last two lines are commented out because SetDataSource() and
ReportSource is not recognized or available through IntelliSense.

Why would this be the case? Are they specific to VS.NET 2005 and 2003 uses
something different?


Jan 19 '06 #3
OK, nevermind. I fixed that problem :)

"ATroy" wrote:
Thanks, Richard. I did what you suggested and I got SetDataSource(). However,
I am now getting this error:

'...OnInit(System.EventArgs)': no suitable method found to override

This would mean I should be inheriting from System.Web.UI.Page, but that
obviously won't give me what I need to work with. How do I manage this error?
"Richard Dudley" wrote:
Just because something isn't available through Intellisense doesn't mean you
can't use it. That just means the compiler doesn't know about it at design
time.

Does MyClass inherit the ReportDocument object? If not, try that--this
should fix your problem. However, when you double-click to open MyClass.cs,
VS will throw an error about not being able to use the designer. To open
MyClass.cs, you should right-click and choose "View Code". This is VS being
too clever by half.

"ATroy" <AT***@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
Here's a sample of my code for the web form that will display the report:

public class myClass: System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer

CrystalReportViewer1;

private void Page_Load(object sender, System.EventArgs e)
{
myDataSet mds = new myDataSet();
myClass mc = new myClass();

... code to fill DataSet here ...

// mc.SetDataSource(mds);
// CrystalReportViewer1.ReportSource = mc;
}
}

The last two lines are commented out because SetDataSource() and
ReportSource is not recognized or available through IntelliSense.

Why would this be the case? Are they specific to VS.NET 2005 and 2003 uses
something different?


Jan 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rick Thiel | last post by:
Hello, I am trying to build a Crystal report VisualStudio.NET for an ASP.NET application. I would like to build a report that doesn't connect to any particular database at design time because I...
1
by: JK | last post by:
In my win form, I'm trying to display a Crystal report with the data in my dataset only but, if I follow the steps in this msdn page: ...
9
by: mollyf | last post by:
I have tried various suggestions that I have found searching the newsgroups and still haven't been able to figure why I keep getting the logon failed error. I created a report in Crystal (not...
3
by: Bob Clegg | last post by:
I am in the same boat as Moondog on the 2nd July. I have a report designed against a dataset. Proved the datasset is OK by dropping a datagrid onto the form and it binds OK to the data. But the...
2
by: Dave McKie | last post by:
Hi all, I am trying to do my first Crystal Report with the bundled version of VB.Net version 2003. I am familiar with creating reports in Crystal version 9...so I though it would be a piece of...
1
by: Mauricio | last post by:
When the Datasource of my report is a DataSet, I'm receiving the message: "Query Engine Error:" "D:\...\temp_c48f3641-a541-44d6-9bfc-3ca2f9817749.rpt When the DataSource is a database it's ok....
7
by: Jlo | last post by:
Hi, I have a c# winforms application. When I call the report file, it shows me all the records in the table. How can I make it to call only a particular range. i have the following code...
1
by: mejames | last post by:
I am using VB.NET 2003, MYSQL database and Crystal Reports. I am able to generate 1 set of reports using the following code: Imports MySql.Data.MySqlClient Imports...
0
by: ~V~ | last post by:
Hi all, I m trying to create a crystal report in vb.net application. I need to show data from 3 different tables in report. So i added all 3 tables in Field explorer of crystal report,but i m...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.