Invoke Find-feature programmatically

Stimulsoft Reports.NET discussion
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Invoke Find-feature programmatically

Post by munich »

Hello,

in StiViewerControl you can enter a find criteria in the find tool and by clicking "Find Next" invoke the first search. Can this be done programmatically too?

:dumb:

Thanks for any help.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Invoke Find-feature programmatically

Post by Edward »

Hi,

We have the following public methods in a StiViewerControl:

InvokeToolFind();
InvokeFindNext();

Do you need an ability to fill the search text box programmatically too?

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Invoke Find-feature programmatically

Post by munich »

Hi Edward,

yes, I need this too.

Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invoke Find-feature programmatically

Post by Jan »

Hello,

We have added new property to StiViewerControl - FindValue. Property will be available in next prerelease build.

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Invoke Find-feature programmatically

Post by munich »

Hello Jan,

do I understand you right: After having the new proptery FindValue available, am I able to do a search for a given find criteria without showing the find tool? This is what I like to achive.

:biggrin:

I thank you very much in advance.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invoke Find-feature programmatically

Post by Jan »

Hello,

You can use class Stimulsoft.Report.Viewer.StiFindHelper to make search without find bar.

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Invoke Find-feature programmatically

Post by munich »

Hello Jan,

Stimulsoft.Report.Viewer.StiFindHelper works perfect! :biggrin:

I thank you very much.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invoke Find-feature programmatically

Post by Jan »

Hello,

Please contact us if you need any help.

Thank you.
williams
Posts: 1
Joined: Fri Oct 30, 2009 5:18 am
Location: Ukraine, Kiev

Invoke Find-feature programmatically

Post by williams »

Good time of the day.
I have a problem with Stimulsoft Viewer: when I add element viewer1:StiViewerControl to my form I have such error:

Error 7 A value of type 'StiViewerControl' cannot be added to a collection or dictionary of type 'UIElementCollection

How can I fix it?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invoke Find-feature programmatically

Post by Jan »

Hello,

Unfortunatelly you can't add StiViewerControl to UIElementCollection from WPF windows, because StiWiewerControl is WinForms control. You can use StiWpfViewerControl from Reports.Wpf.

Thank you.
Post Reply