Nested Objects with rdlc report

G

Guest

I have Visual Studio 2005, trying to properly bind to a nested object tree.
I can bind to the top level object just fine, but can't seem to "hook" my
nested object in.

I have a ShoppingCart object, which has 1+ Shipment objects, which each have
1+ LineItem objects. Pretty standard. I'm looking to print a report that
prints out the header for the shopping cart, and then sections for each
shipment, and so on.

I am floundering on how to "hook" the second levels in. When I browse
through the list of fields for ShoppingCart, for example, I cannot choose
"Shipments".

Could someone point me to an article or guide on (1) making sure my data
sources are properly set up; (2) making sure my data sources in the report
are properly set up, and most importantly (3) how to hook up the nested
levels.

Thanks in advance.
 
Y

Yuan Ren[MSFT]

Hi Susan,

Thanks for posting!

From your description, let me explanation my understanding about the
current issue. I think you have an ObjectDataSource control and bind it
with some data source. And then you use some control likes the TreeView to
present the current data. If I have misunderstood anything, please let me
know.
"(1) making sure my data sources are properly set up;"
There are many articles demonstrate how to use the ObjectDataSource control
in your application. Just for your reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html
/asp2objectdatasource.asp
"(3) how to hook up the nested levels."
As far as I know, you need write your own code at the current stage. In the
code, you need to get the current node which you want to "hook". And then,
you can perform some manipulations.

I hope the information will be helpful!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were
updated on February 14, 2006. Please complete a re-registration process
by entering the secure code mmpng06 when prompted. Once you have
entered the secure code mmpng06, you will be able to update your profile
and access the partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 
G

Guest

Thank you for your response.

As I stated in my original message, I am trying to bind to a report, not a
windows forms or ASP.NET control. If you were to go to the Add New Item
menu, and select "Report" you would see "Report1.rdlc - An empty Report file
for creating a report using Microsoft reporting technology." This is a
report writer similar to, or using, the Reporting services technology.

Because I am trying to use these data sources in a report, there is no
programmatic way that I know of to bind child data on the fly. This is part
of what I'm looking to find out.

I have the top level of the report bound to a ShoppingCart object, which
holds several Shipping objects. I would like to have a details grouping
bound to the set of shipping objects, such that for each shipping object, I
can lay out some details of the shipping object. Then there's one more level
- for each Shipping object, there can be one or more Line Item objects. I
need to show that detail.

This is nothing more than a simple sales receipt.

Thank you again.

"Yuan Ren[MSFT]" said:
Hi Susan,

Thanks for posting!

From your description, let me explanation my understanding about the
current issue. I think you have an ObjectDataSource control and bind it
with some data source. And then you use some control likes the TreeView to
present the current data. If I have misunderstood anything, please let me
know.
"(1) making sure my data sources are properly set up;"
There are many articles demonstrate how to use the ObjectDataSource control
in your application. Just for your reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html
/asp2objectdatasource.asp
"(3) how to hook up the nested levels."
As far as I know, you need write your own code at the current stage. In the
code, you need to get the current node which you want to "hook". And then,
you can perform some manipulations.

I hope the information will be helpful!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
 
Y

Yuan Ren[MSFT]

Hi Susan,

Thanks for your reply!

Sorry for late response since I am performing some test for the current
issue now. Actually, as far as I know, the Report viewer control is related
to the reporting service, so I have to discuss with our SQL engineer. I'll
reply ASAP when I get some information. Thanks for your patience!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were
updated on February 14, 2006. Please complete a re-registration process
by entering the secure code mmpng06 when prompted. Once you have
entered the secure code mmpng06, you will be able to update your profile
and access the partner newsgroups.
======================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================
 
G

Guest

Thank you for your continued help. I will gladly wait for any help you can
provide. I have since found a bit of information at
http://www.gotreportviewer.com/objectdatasources/index.html , specifically in
the example AuthorBooks.zip. While this is of help, it doesn't actually
"answer" my question, so I will wait patiently for any more assistance you
might provide.

Thank you again.
 
G

Guest

Yuan:

Please advise if you have received any updated information on this question
- I have not been able to figure out a successful method.

Thank you in advance. (Nested Object binding with Reporting Services report
in VS 2005)

Susan Hernandez.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top