473,666 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RS 2005: Use a Custom Class as DataSource?

Hi,

Is it possible to use a Custom Class/Object as a DataSource/DataSet for a
report?

I have now for instance my object MyCompany, and it woudl be nice to just
use a MyCompany-instance as the DataSource...

Any hints/help woudl be really appreciated,

Thanks a lot in advance,

Pieter
Jan 26 '06 #1
4 2634
I thought that the objectDatasourc e control was only used by ASP.NET
applications.
A SSRS report is not an ASP.NET application unless you use the new
reportViewer component and there you can use an ObjectDataSourc e

Med bouchenafa

"Pieter" <pi**********@h otmail.com> a écrit dans le message de news:
%2************* **@TK2MSFTNGP11 .phx.gbl...
Hi,

Is it possible to use a Custom Class/Object as a DataSource/DataSet for a
report?

I have now for instance my object MyCompany, and it woudl be nice to just
use a MyCompany-instance as the DataSource...

Any hints/help woudl be really appreciated,

Thanks a lot in advance,

Pieter

Jan 26 '06 #2
Hi,

You can bind windows applications to objects also.

Ken
--------------------
"Med Bouchenafa" <com.hotmail@bo uchenafa> wrote in message
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
I thought that the objectDatasourc e control was only used by ASP.NET
applications .
A SSRS report is not an ASP.NET application unless you use the new
reportViewer component and there you can use an ObjectDataSourc e

Med bouchenafa

"Pieter" <pi**********@h otmail.com> a écrit dans le message de news:
%2************* **@TK2MSFTNGP11 .phx.gbl...
Hi,

Is it possible to use a Custom Class/Object as a DataSource/DataSet for a
report?

I have now for instance my object MyCompany, and it woudl be nice to just
use a MyCompany-instance as the DataSource...

Any hints/help woudl be really appreciated,

Thanks a lot in advance,

Pieter


Jan 26 '06 #3
That's right, my mistake
I should have said applications and not only ASP.NET applications
I meant a SSRS report is a standalone xml file
Thanks for correcting

Med bouchenafa

"Ken Tucker [MVP]" <vb***@bellsout h.net> a écrit dans le message de news:
OP************* *@TK2MSFTNGP09. phx.gbl...
Hi,

You can bind windows applications to objects also.

Ken
--------------------
"Med Bouchenafa" <com.hotmail@bo uchenafa> wrote in message
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
I thought that the objectDatasourc e control was only used by ASP.NET
application s.
A SSRS report is not an ASP.NET application unless you use the new
reportViewer component and there you can use an ObjectDataSourc e

Med bouchenafa

"Pieter" <pi**********@h otmail.com> a écrit dans le message de news:
%2************* **@TK2MSFTNGP11 .phx.gbl...
Hi,

Is it possible to use a Custom Class/Object as a DataSource/DataSet for
a report?

I have now for instance my object MyCompany, and it woudl be nice to
just use a MyCompany-instance as the DataSource...

Any hints/help woudl be really appreciated,

Thanks a lot in advance,

Pieter



Jan 26 '06 #4
Ok thanks, but how do I have to do it? I can't find any information about
it?
How do I tell my report (when designing it) that it has to use property's of
a certain class? and how can I give an instance of that class as a parameter
before refreshing the reportviewer?

"Med Bouchenafa" <com.hotmail@bo uchenafa> wrote in message
news:ub******** ******@TK2MSFTN GP09.phx.gbl...
That's right, my mistake
I should have said applications and not only ASP.NET applications
I meant a SSRS report is a standalone xml file
Thanks for correcting

Med bouchenafa

"Ken Tucker [MVP]" <vb***@bellsout h.net> a écrit dans le message de news:
OP************* *@TK2MSFTNGP09. phx.gbl...
Hi,

You can bind windows applications to objects also.

Ken
--------------------
"Med Bouchenafa" <com.hotmail@bo uchenafa> wrote in message
news:Oh******** ******@TK2MSFTN GP09.phx.gbl...
I thought that the objectDatasourc e control was only used by ASP.NET
applications .
A SSRS report is not an ASP.NET application unless you use the new
reportViewer component and there you can use an ObjectDataSourc e

Med bouchenafa

"Pieter" <pi**********@h otmail.com> a écrit dans le message de news:
%2************* **@TK2MSFTNGP11 .phx.gbl...
Hi,

Is it possible to use a Custom Class/Object as a DataSource/DataSet for
a report?

I have now for instance my object MyCompany, and it woudl be nice to
just use a MyCompany-instance as the DataSource...

Any hints/help woudl be really appreciated,

Thanks a lot in advance,

Pieter



Jan 27 '06 #5

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

Similar topics

5
560
by: Marri Suliez | last post by:
Has anyone found some documentation on how to properly subclass a ListBox control and provide custom sorting (when the list items come from a DataSource)? The only way I can figure out how to do this is by sorting an array of some sort and then setting the DataSource. I don't like this because it fires the DataSourceChanged event. What I really want to do is get access to the underlying list items, sort them, and then have the...
5
2097
by: dlobalzo | last post by:
Hi guys, I've been reading several topics that talk about creating a custom collection to use it as DataSource of a Datagrid. But the fact is I have a class called Action and another class called Profile. In my application, the user assigns several Actions to a Profile. I thought doing this using an ArrayList of Actions and puting that as the DataSource of the Datagrid that shows the assignments. It works, but it shows every property...
1
2223
by: Conawapa11 | last post by:
I'm having trouble figuring this problem out and every example out there deals with simple objects within a custom collection. Take this example: public class ComplexClass { private int id; private InnerClass anotherOne; public int ID
7
3338
by: Girish | last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a huge learning experience.. My problem. I have a requirement to display a gird with a gird. Within the embedded grid, theres a requirement to show a drop down menu list (this is a control I downloaded online) in one of the columns. For the purposes of this question, Ive implemented the drop down menu as a drop down list instead. Ive got all this working at this...
1
3702
by: Marty Cruise | last post by:
I have a custom collection which contains instances of a custom class. With me so far? OK, now I set the datasource of a combobox to the collection, having overridden the ToString() function of the custom class to return one of its text properties. Life is good. The first of two problems involves the combobox showing the first item in the collection. To get around this,
0
970
by: Eric Dreksler | last post by:
Hi, I'm trying to make a custom implementation of ListControl, where I pass in a control type (based off a MustInherit UserControl) and a DataSource. Public Class PrettyControlList Inherits System.Windows.Forms.ListControl Private c_ucInheritedControl as Object 'This is my Custom PrettyListItem
8
6455
by: Phil Lee | last post by:
I'm sure this is possible but I just can't see how to do it. I want to add schemas to my solution and have C# classes automatically generated from them. I can see how to generate typed DataSet's with the MSDataSetGenerator custom tool. Is there something similar for simple schemas? Regards Phil Lee
14
14635
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control so I get the ObjectDataSource. No problem ..... ObjectDataSource src = .... //is ok i have it
8
3574
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a picture box, lots of text boxes (for input).. you get the idea. All of a sudden everything on the form has disappeared, it looks like a blank, newly created form. I can still get to the properties of every item on the form using the drop-down box in...
0
8444
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1775
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.