Sub-Report Problem

Stimulsoft Reports.NET discussion
Post Reply
nightbat
Posts: 6
Joined: Fri Jun 25, 2010 9:10 am

Sub-Report Problem

Post by nightbat »

I would Like to create a report based on Sub-report capability:
the report itself has a data source based on a query;
i have two sub-reports with two different query which i want to pass two different parameter
to each of them from the main report's query.
can anyone help me on this scenario.

thank you in advance.


p.s. i utilize "Binding Data Source" as data source.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Sub-Report Problem

Post by Ivan »

Hello,

If you wish to simply send a parameter to sub-report, then you can create a variable in the dictionary and send this parameter via the variable.
A report sample is in the attach. In the BeforePrint event of the DataBand1 parameter are stored in the Variable1, and then this parameter is used in the Condition of the DataProducts band.

Thank you.
Attachments
481.Report.zip
(2.25 KiB) Downloaded 140 times
Post Reply