Object reference not set to an instance of an object.

Stimulsoft Ultimate discussion
Post Reply
omidiran
Posts: 9
Joined: Tue Aug 10, 2010 12:21 am

Object reference not set to an instance of an object.

Post by omidiran »

Hi,

I'm using Stimulsoft Reports.Ultimate 2010.1 . when i try to show report in design mode in my prgrom this exception happens:

Exception: System.NullRefrenceException

Source: Stimulsoft.Base

Stack trace:
at Stimulsoft.Base.StiActivator.CreateObject(String typeName, Object[] arguments)
at Stimulsoft.Base.StiActivator.CreateObject(Type type, Object[] arguments)
at Stimulsoft.Report.StiReport.PrepareForDesign()
at Stimulsoft.Report.StiReport.StartDesigner(StiReport report, Form parentForm, Boolean dialogForm, IWin32Window win32Window)
at Stimulsoft.Report.StiReport.Design(Form parentForm, Boolean dialogForm, IWin32Window win32Window)
at Stimulsoft.Report.StiReport.Design(Boolean dialogForm)
at Stimulsoft.Report.StiReport.Design()

and this is my code:

StiReport report = new StiReport();

report.DataSources.Add(dataSource);

Stimulsoft.Report.Design.Wizards.StiStandardWizardService stiNewReport =
new Stimulsoft.Report.Design.Wizards.StiStandardWizardService();

report = stiNewReport.CreateReport(report);

if (report != null)
{
if (report.DataSources.Count == 0)
{
report.DataSources.Add(dataSource);
}
report.Design( ); //exception in here happens.
}

please help me.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Object reference not set to an instance of an object.

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Can you please send us a sample project which reproduces the issue.

Thank you.
Post Reply