StiDesigner Preview Control - Invoke a Search

Stimulsoft Reports.NET discussion
Post Reply
DHarvey
Posts: 24
Joined: Wed Apr 24, 2013 8:52 am

StiDesigner Preview Control - Invoke a Search

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiDesigner Preview Control - Invoke a Search

Post 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.
DHarvey
Posts: 24
Joined: Wed Apr 24, 2013 8:52 am

Re: StiDesigner Preview Control - Invoke a Search

Post by DHarvey »

Hi Aleksey,

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

Thanks for your time.

Kind Regards,
David
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: StiDesigner Preview Control - Invoke a Search

Post by Andrew »

Thank you, David.

Have a nice day!
DHarvey
Posts: 24
Joined: Wed Apr 24, 2013 8:52 am

Re: StiDesigner Preview Control - Invoke a Search

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiDesigner Preview Control - Invoke a Search

Post by HighAley »

Hello.

Thank you for posting the solution here.
Post Reply