Page 1 of 1

StiDesigner Preview Control - Invoke a Search

Posted: Thu Jan 09, 2014 10:13 am
by DHarvey
Hi,

I was wondering if it was possible in the StiDesigner Preview Control to invoke a search like you can in the StiViewer?

A lot of our customers need to be able to search for data on the report when designing and previewing it.

Note I am using Win Forms .Net Version (2013.1.1600.0).

To do this in the Report Viewer you would:

Code: Select all

ReportViewer.InvokeToolFind();
Kind Regards,
David

Re: StiDesigner Preview Control - Invoke a Search

Posted: Thu Jan 09, 2014 1:36 pm
by HighAley
Hello, David.

Unfortunately, there is no such method for preview in the Designer Control.
If you need this feature, please send a request to support@stimulsoft.com

Thank you.

Re: StiDesigner Preview Control - Invoke a Search

Posted: Thu Jan 09, 2014 1:46 pm
by DHarvey
Hi Aleksey,

I will send an email to request this feature in the mean time.

Thanks for your time.

Kind Regards,
David

Re: StiDesigner Preview Control - Invoke a Search

Posted: Thu Jan 09, 2014 2:44 pm
by Andrew
Thank you, David.

Have a nice day!

Re: StiDesigner Preview Control - Invoke a Search

Posted: Fri Jan 10, 2014 1:30 pm
by DHarvey
Glad I helped someone else :)

After speaking to the Support Team via the email provided I have been able to invoke the Find Tool in the StiDesignerPreviewControl.

This was the example provided:

Code: Select all

StiReport report = new StiReport();
StiDesignerPreviewControl previewControl = new StiDesignerPreviewControl(new StiDesignerControl());
this.Controls.Add(previewControl);
StiViewerControl viewer = previewControl.ViewerControl.Viewer as StiViewerControl;
viewer.Report = report;
viewer.InvokeToolFind();
Thanks for all the help.

Kind Regards,
David

Re: StiDesigner Preview Control - Invoke a Search

Posted: Sat Jan 11, 2014 11:54 am
by HighAley
Hello.

Thank you for posting the solution here.