Page 1 of 1

StiToolsToolbarService.GetService returns "Nothing"

Posted: Thu Oct 08, 2015 8:42 am
by Fabio Pagano
Good morning.

In Stimulsoft Reports.Net 2015.2, "Stimulsoft.Report.Design.Toolbars.StiToolsToolbarService.GetService" returns "Nothing". In the previous version that I used (2013.2) it worked.

This is an example of my code:

Code: Select all

Dim ToolsToolbarService As Stimulsoft.Report.Design.Toolbars.StiToolsToolbarService = Stimulsoft.Report.Design.Toolbars.StiToolsToolbarService.GetService
ToolsToolbarService.ShowDataStore = False
In the second statement, I receive "Object reference not set to an instance of object" (because "ToolsToolbarService" is nothing).

At the moment this is not a problem for me, I've disabled the instructions (which were not important).

Thank you.

Re: StiToolsToolbarService.GetService returns "Nothing"

Posted: Thu Oct 08, 2015 8:45 am
by Fabio Pagano
Note: the statement that gives "Object reference not set to an instance of object" (because ToolsToolbarService is "Nothing") is:

ToolsToolbarService.ShowDataStore = False

Thank you.

Re: StiToolsToolbarService.GetService returns "Nothing"

Posted: Thu Oct 08, 2015 11:32 am
by HighAley
Hello, Fabio.

Please, use next static option instead:

Code: Select all

StiOptions.Designer.Toolbars.ToolsToolbar.ShowDataStore
Thank you.

Re: StiToolsToolbarService.GetService returns "Nothing"

Posted: Thu Oct 08, 2015 6:23 pm
by Fabio Pagano
It has worked.

Thank you.

Re: StiToolsToolbarService.GetService returns "Nothing"

Posted: Fri Oct 09, 2015 5:55 am
by HighAley
Hello., Fabio.

There were some changes in our Services and we have added some new properties since build that you used.
Let us know if you need any additional help.

Thank you.