Error when compiling my application

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Error when compiling my application

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Error when compiling my application

Post 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.
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Re: Error when compiling my application

Post 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!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Error when compiling my application

Post by Alex K. »

Hello,

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

Thank you.
Post Reply