StiToolsToolbarService.GetService returns "Nothing"

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

StiToolsToolbarService.GetService returns "Nothing"

Post 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.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Re: StiToolsToolbarService.GetService returns "Nothing"

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

Re: StiToolsToolbarService.GetService returns "Nothing"

Post by HighAley »

Hello, Fabio.

Please, use next static option instead:

Code: Select all

StiOptions.Designer.Toolbars.ToolsToolbar.ShowDataStore
Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Re: StiToolsToolbarService.GetService returns "Nothing"

Post by Fabio Pagano »

It has worked.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: StiToolsToolbarService.GetService returns "Nothing"

Post 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.
Post Reply