Hello!
Is it possible to catch a click event of a text element of a report hosted in a StiPreviewControl?
I've got a report viewed inside a Windows Forms, I would like to catch the text click event in order to make a sort of "drill down" but inside a Windows Form.
Thank you,
Paolo.
Click event of a Text element (passing bounded data)
Click event of a Text element (passing bounded data)
Yes, it is possible.
When click event occurs in StiText component then OnClick event is fired. So you can process the actions you need in that event handler.
Thank you.
When click event occurs in StiText component then OnClick event is fired. So you can process the actions you need in that event handler.
Thank you.
Click event of a Text element (passing bounded data)
Thank you for the reponse.
But I'm able of catching the event INSIDE the report class, but not able of hanlding the event outside (in my Form)
somthing like:
public void Text1_Click(object sender, System.EventArgs e)
{
string arg = (sender as StiText).Text ecc...
}
I would like to catch the onclick in the windows forms code and obtain the argument.
Thanks...
Paolo.
But I'm able of catching the event INSIDE the report class, but not able of hanlding the event outside (in my Form)
somthing like:
public void Text1_Click(object sender, System.EventArgs e)
{
string arg = (sender as StiText).Text ecc...
}
I would like to catch the onclick in the windows forms code and obtain the argument.
Thanks...
Paolo.
Click event of a Text element (passing bounded data)
Oh, so sorry... it was so simple!!!
I was looking for a solution inside the report's code, but it was enough registering to the click event and then
private void stiReport1_Click(object sender, EventArgs e)
{
object o= (sender as StiText).Tag;
}
thank you very much, great job!
Paolo
I was looking for a solution inside the report's code, but it was enough registering to the click event and then
private void stiReport1_Click(object sender, EventArgs e)
{
object o= (sender as StiText).Tag;
}
thank you very much, great job!
Paolo
Click event of a Text element (passing bounded data)
Let us know if you need any help.
Thank you.
Thank you.