Page 1 of 1

catch a click event of a stiText In Preview Mode

Posted: Wed Apr 02, 2008 2:07 am
by sphextor
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 to show context menu for user to choose
pre define text to show in preview mode

Please share code in vb.net

Thank you

catch a click event of a stiText In Preview Mode

Posted: Wed Apr 02, 2008 7:32 am
by Vital
You can use Click event of StiReport. This event occurs when user click on component in preview window.

Thank you.

catch a click event of a stiText In Preview Mode

Posted: Wed Apr 02, 2008 7:36 am
by sphextor
Thank you.

But Is it posible to handle that event in My Form event Not In Report event

Please..

catch a click event of a stiText In Preview Mode

Posted: Wed Apr 02, 2008 8:14 am
by Vital
In version 2008.1 you can only handle click event in report or in report component. In build from 2 April (when it will be available) we have added two new events - ClickComponent and DoubleClickComponent to StiPreviewControl.

Thank you.