Anyone use ReportViewer with Business Objects?

D

dgk

VS2005. I've spent two days trying to figure out how to do a simple
master/detail report using ReportViewer and am just about ready to
punt. This is something that really should have been
drag/drop/relationship but no.

I've finally figured out that I need to use a subreport but I can't
figure out how to set the datasource of the localreport object since
it only seems to want a datatable and I have a function that is
returning a list (of myobjects).

If anyone has any idea how to set up the relationship (I'm trying to
use a parameter and/or a filter) or how to set the datasource for the
subtable, please let me know.

I guess I can try dumping all the detail records into a datatable at
run time and using that. I doubt it will work. I'm ready to go back to
VB3.
 
C

Chris

dgk said:
VS2005. I've spent two days trying to figure out how to do a simple
master/detail report using ReportViewer and am just about ready to
punt. This is something that really should have been
drag/drop/relationship but no.

I've finally figured out that I need to use a subreport but I can't
figure out how to set the datasource of the localreport object since
it only seems to want a datatable and I have a function that is
returning a list (of myobjects).

If anyone has any idea how to set up the relationship (I'm trying to
use a parameter and/or a filter) or how to set the datasource for the
subtable, please let me know.

I guess I can try dumping all the detail records into a datatable at
run time and using that. I doubt it will work. I'm ready to go back to
VB3.


I haven't been able to figure out how to bind a datatable to a
reportviewer. I had to go back to crystal reports to do it. Instead of
going back to VB3 you might try using the crystal report viewer, there
is much more documentation about that control around.

Chris
 
D

dgk

I haven't been able to figure out how to bind a datatable to a
reportviewer. I had to go back to crystal reports to do it. Instead of
going back to VB3 you might try using the crystal report viewer, there
is much more documentation about that control around.

Chris

I'm really ready to hardcode the whole thing in PrintDocument but
perhaps crystal.
 
Joined
Feb 6, 2007
Messages
1
Reaction score
0
...

dgk said:
VS2005. I've spent two days trying to figure out how to do a simple
master/detail report using ReportViewer and am just about ready to
punt. This is something that really should have been
drag/drop/relationship but no.

I've finally figured out that I need to use a subreport but I can't
figure out how to set the datasource of the localreport object since
it only seems to want a datatable and I have a function that is
returning a list (of myobjects).

If anyone has any idea how to set up the relationship (I'm trying to
use a parameter and/or a filter) or how to set the datasource for the
subtable, please let me know.

I guess I can try dumping all the detail records into a datatable at
run time and using that. I doubt it will work. I'm ready to go back to
VB3.

try this one...
http://www.gotreportviewer.com/masterdetail/index.html
 

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