Page 1 of 1

Error when compiling my application

Posted: Wed Sep 30, 2015 8:35 am
by Jennypi
Hello,

In the in-house application where Stimulsoft is embedded, I use this code in MainForm.cs:

Code: Select all

var des = StiConfig.Services.GetService(typeof(StiDesignerConfigService)) as StiDesignerConfigService;
des.CodeTabVisible = true;
to make the Code tab visible.
While I am trying to upgrade to a more recent version of Stimulsoft, this code leads to an error (Object reference does not set to the reference of an objetc).
Can you please help me fixing this issue?

I am getting also another error saying the System.data.dll file or assembly cannot be loaded.
I guess it relates to this code of Program.cs:

Code: Select all

using System;
using System.Windows.Forms;
using System.Data;
Can you please help me fixing this issue as well?

Thank you.

Re: Error when compiling my application

Posted: Thu Oct 01, 2015 5:44 am
by Alex K.
Hello,
While I am trying to upgrade to a more recent version of Stimulsoft, this code leads to an error (Object reference does not set to the reference of an objetc).
Can you please help me fixing this issue?
We couldn't reproduce this bug.
Please try to use the following option:

Code: Select all

StiOptions.Designer.CodeTabVisible = false;
I am getting also another error saying the System.data.dll file or assembly cannot be loaded.
Please see the following article on our knowledgebase:
http://support.stimulsoft.com/index.php ... -exception

Thank you.

Re: Error when compiling my application

Posted: Thu Oct 01, 2015 9:42 am
by Jennypi
Hi,

I used

Code: Select all

StiOptions.Designer.CodeTabVisible = false;
and it worked!

I also inserted

Code: Select all

using System.Data;
 ....
DataSet ds = null;
in MainForm.cs, and it worked as well :)

Thanks a lot!

Re: Error when compiling my application

Posted: Thu Oct 01, 2015 1:26 pm
by Alex K.
Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.