Page 1 of 1

Problems after updating from 2008.2 to 2009.1

Posted: Mon Apr 20, 2009 6:20 am
by Neo77
Hi

We have just updated to version 2009.1 an can't use the StiDesignerControl or StiReport anymore.
Maybe there are some changes we will have to make because of the update?

First of all, the property Style of the StiDesignerControl seemd to be gone...is there any replacement?

Then if we don't use the Style property, everytime we want to show the designer or the viewer, we got the following error:

System.NullReferenceException occurred
Message="Object reference not set to an instance of an object."
Source="Stimulsoft.Report.Design"
StackTrace:
at Stimulsoft.Report.Design.StiDesignerConfigService.Load()
at Stimulsoft.Report.Design.StiDesignerControl.LoadDesignerParam()
at Stimulsoft.Report.Design.StiDesignerControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.UpdateWindow(HandleRef hWnd)
at System.Windows.Forms.Control.Update()
at Stimulsoft.Controls.Win.DotNetBar.DockSite.LayoutBars()
at Stimulsoft.Controls.Win.DotNetBar.DockSite.RecalcLayout()
at Stimulsoft.Controls.Win.DotNetBar.Bar.RecalcLayout()
at Stimulsoft.Controls.Win.DotNetBar.Bar.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.DockSite.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Stimulsoft.Controls.Win.DotNetBar.DockSite.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SetParent(HandleRef hWnd, HandleRef hWndParent)
at System.Windows.Forms.Control.SetParentHandle(IntPtr value)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at srgits.Via.Desktop.AdminModule.Controls.ReportUserControl.InitDesigner() in ....
InnerException:

We are using the following code to dynamically create the designer control (no problems in 2008.2)

Code: Select all

this.Controls.Clear();
stiDesigner = null;

StiReport.ClearImageCache();
StiReport.ClearReportCache();

StiStandardToolbarService toolbarService = StiStandardToolbarService.GetService(stiDesigner);
toolbarService.ShowReportNew = false;
toolbarService.ShowFormNew = false;
toolbarService.ShowReportOpen = false;
toolbarService.ShowClose = false;

StiMainMenuService mainMenuService = StiMainMenuService.GetService(stiDesigner);
mainMenuService.ShowFileReportNew = false;
mainMenuService.ShowFileFormNew = false;
mainMenuService.ShowFileRecentFiles = false;
mainMenuService.ShowFileExit = false;

StiOptions.Designer.HtmlPreviewReportVisible = false;
StiOptions.Designer.CodeTabVisible = false;

StiOptions.Designer.DontSaveDesignerConfig = true;
StiOptions.Designer.DontSaveDockingPanelsConfig = true;
StiOptions.Designer.DontSaveEditorConfig = true;
StiOptions.Designer.DontAskSaveReport = true;
StiOptions.Designer.CanDesignerChangeReportFileName = false;

stiDesigner = new StiDesignerControl();
[i]//stiDesigner.Style = StiGuiStandardStyle.Office2003;[/i]
stiDesigner.Dock = DockStyle.Fill;
this.Controls.Add(stiDesigner);

StiDesigner.SavingReport += new StiSavingObjectEventHandler(StiDesigner_SavingReport);
Thanks for you reply!

Regards,
Chris

Problems after updating from 2008.2 to 2009.1

Posted: Mon Apr 20, 2009 3:33 pm
by Jan
Hello Chris,
We have just updated to version 2009.1 an can't use the StiDesignerControl or StiReport anymore.
Maybe there are some changes we will have to make because of the update?

First of all, the property Style of the StiDesignerControl seemd to be gone...is there any replacement?
Sorry for this trouble. Please use following property: StiOptions.Windows.GuiStyle
Then if we don't use the Style property, everytime we want to show the designer or the viewer, we got the following error:
You receive same error for viewer too?

Thank you.


Problems after updating from 2008.2 to 2009.1

Posted: Tue Apr 21, 2009 1:41 am
by Neo77
Cool thanks!

I have unistalled the previous version now and installed 2009.1. Now it works fine.