Click Event for sub report
Click Event for sub report
I have some requests from client about:
1. They want to display some data in the form of bar chart and during double click on the specific bar then display the detail. My idea is about can I just have a double click event and then rendering another report or enable the pre-rendered page to display? Any idea which method is possible to get the result.
2. The request is nearly the same as above but this time is click on the row and pass the value to render another report base on the clicked row data?
Thx.
1. They want to display some data in the form of bar chart and during double click on the specific bar then display the detail. My idea is about can I just have a double click event and then rendering another report or enable the pre-rendered page to display? Any idea which method is possible to get the result.
2. The request is nearly the same as above but this time is click on the row and pass the value to render another report base on the clicked row data?
Thx.
Click Event for sub report
Hello,
Thank you.
At this moment this is not possible.1. They want to display some data in the form of bar chart and during double click on the specific bar then display the detail. My idea is about can I just have a double click event and then rendering another report or enable the pre-rendered page to display? Any idea which method is possible to get the result.
Yes, it possible. Please see sample project LiveReports from standard delivery.2. The request is nearly the same as above but this time is click on the row and pass the value to render another report base on the clicked row data?
Thank you.
Click Event for sub report
Would you please explain how case 2 is done, this example is not clear to me..
Thank you in advance
Thank you in advance
Click Event for sub report
Hello,
report:
In event handler of this event we use following code:
Thank you.
Each component in report have filled Bookmark property (or Tag property). This value used as parameters for detail reports. Before report running we have signed to Click event ofmihiri wrote:Would you please explain how case 2 is done, this example is not clear to me..
Thank you in advance
report:
Code: Select all
report.CompiledReport.Click += new EventHandler(click);
Code: Select all
private void click(object sender, EventArgs e)
{
//Component which generate click event
StiComponent comp = sender as StiComponent;
//Our parameter
string customerID = (string)comp.BookmarkValue;
//Run report with parameter
if (customerID != null)
{
StiReport report = new StiReport();
report.RegData(dataSet1);
report.Load("..\\..\\Details.mrt");
StiDataBand dataBand = (StiDataBand)report.Pages["Page1"].Components["DataBand1"];
//Parameter assigned to databand filter
dataBand.Filter.Value = "{Orders.CustomerID==\"" + customerID + "\"}";
report.Show();
}
}
Click Event for sub report
thanks a lot for your detailed description. But this code is not available in the
"C:\Program Files\Stimulsoft Reports.Net 2007.3\.Net 2.0\Samples\C#\LiveReports\LiveReports.mrt"
am I browsing the wrong place?
"C:\Program Files\Stimulsoft Reports.Net 2007.3\.Net 2.0\Samples\C#\LiveReports\LiveReports.mrt"
am I browsing the wrong place?
Click Event for sub report
Hello,
Please see code of Form1.cs.
Thank you.
Please see code of Form1.cs.
Thank you.
-
- Posts: 7
- Joined: Wed Nov 26, 2008 1:40 am
- Location: Philippines
Click Event for sub report
Had a look at this code:
tried it, and successfully duplicated this one.
Hi! just a quick question.
how would it work if instead of loading an mrt file,
we load a compiled report instead
is Filtering a databand value same as
I tried this statement (although I know it wouldn't work)
it's obviously incorrect and honestly I don't have any idea how to do it :pffft:
Any Thoughts?!
Is it possible to create a parameter inside the Detail.mrt
and pass a value from it?
Are parameters accessible inside a compiled report? (dll) :byebye:
Code: Select all
private void click(object sender, EventArgs e)
{
//Component which generate click event
StiComponent comp = sender as StiComponent;
//Our parameter
string customerID = (string)comp.BookmarkValue;
//Run report with parameter
if (customerID != null)
{
StiReport report = new StiReport();
report.RegData(dataSet1);
report.Load("..\\..\\Details.mrt");
StiDataBand dataBand = (StiDataBand)report.Pages["Page1"].Components["DataBand1"];
//Parameter assigned to databand filter
dataBand.Filter.Value = "{Orders.CustomerID==\"" + customerID + "\"}";
report.Show();
}
}
Hi! just a quick question.
how would it work if instead of loading an mrt file,
we load a compiled report instead
Code: Select all
report = StiReport.GetReportFromAssembly("Detail.dll");
Code: Select all
dataBand.Filter.Value = "{Orders.CustomerID==\"" + customerID + "\"}";
Code: Select all
StiDataBand dataBand = report.CompiledReport.GetComponents()["DatadsProject"] as StiDataBand;
dataBand.Filter.Value = "{dsProject.busent== " + strBusEnt + "}";
Any Thoughts?!
Is it possible to create a parameter inside the Detail.mrt
and pass a value from it?
Are parameters accessible inside a compiled report? (dll) :byebye:
Click Event for sub report
Hello.
Please make the following steps:
- Create MyVariable variable in the Dictionary.
- Set the Filter asexpression in the Designer as following:
- before calling Render() or Show() command, assign the variable in the compiled report:
Thank you.
In that case the filter could be created with help of variables. This variables can be set before rendering and filters will work as expected.PLR wrote:how would it work if instead of loading an mrt file,
we load a compiled report instead
Please make the following steps:
- Create MyVariable variable in the Dictionary.
- Set the Filter asexpression in the Designer as following:
Code: Select all
Orders.CustomerID==MyVariable
Code: Select all
myCompiledReport["MyVarialbe"] = 5;
-
- Posts: 7
- Joined: Wed Nov 26, 2008 1:40 am
- Location: Philippines
Click Event for sub report
Worked like a charm!Edward wrote:Hello.
In that case the filter could be created with help of variables. This variables can be set before rendering and filters will work as expected.PLR wrote:how would it work if instead of loading an mrt file,
we load a compiled report instead
Please make the following steps:
- Create MyVariable variable in the Dictionary.
- Set the Filter asexpression in the Designer as following:
- before calling Render() or Show() command, assign the variable in the compiled report:Code: Select all
Orders.CustomerID==MyVariable
Thank you.Code: Select all
myCompiledReport["MyVarialbe"] = 5;
Click Event for sub report
Hello
Please let us know if any help is required.
Thank you.
Please let us know if any help is required.
Thank you.