how to bind 2 details and relastion in subreport?

Stimulsoft Reports.NET discussion
Post Reply
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

how to bind 2 details and relastion in subreport?

Post by RickyHuang »

I have 3 Table
1.OrderMaster
2.OrderDetail
3.Employee

report:
Master Report-OrderMaster Info
SubReport1-OrderDetail List
SubReport2-Empoyee Info

relation:
OrderMaster's OrderID-OrderDetail's OrderID
OrderMaster's EmployeeID-Employee's EmployeeID

SubReport1's relation can work,but SubReport2 doesn't

please tell me how to do it...

attach this VB Project
http://filesky.com/publish/24/61.aspx


Another exampler:
products will need a lot of suppliers and will be distributed to many different customers
I need a form with the function to list down all the suppliers and clients
Thank you...
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

how to bind 2 details and relastion in subreport?

Post by Edward »

Hi

Please right-click in the report designer on relations 'MasterDetail' and 'MDEmployee'. Change NameInSource parameter as 'Relation1' and 'Relation2' accordingly. That relation names can not have the same name.

Thank you.
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

how to bind 2 details and relastion in subreport?

Post by RickyHuang »

oh...it can work

thanks for your help

Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

how to bind 2 details and relastion in subreport?

Post by Andrew »

We are glad to help you.

Thank you.
Post Reply