Jump to content
Software FX Community

Export with OLAP Extension


User (Legacy)

Recommended Posts

When I load a chart with the OLAP extenstion and attempt to export using

this code:

fxChart.FileMask = fxGrid.FileMask | FileMask.All;

fxChart.Export(FileFormat.XML, "C:\\Temp\\ChartFX.xml");

I get the following exception:

Message: Object reference not set to an instance of an object.

Source : ChartFX.Olap.WinForms

System.NullReferenceException: Object reference not set to an instance of an

object.

at SoftwareFX.ChartFX.Olap.WinForms.XmlAnalysisData.2W(Int32 T1, Int32

T2)

at SoftwareFX.ChartFX.Olap.WinForms.ClonedData..ctor(F data)

at SoftwareFX.ChartFX.Olap.WinForms.OlapExtension.0D(Boolean QL,

IPersistBase QM)

at SoftwareFX.ChartFX.02.6W(String 0WS, Object 0WT, String 0WU, ObjFlags

0WV, Object 0WW)

at SoftwareFX.ChartFX.02.Serialize(String sName, Object obj, String

sType, ObjFlags flags)

at SoftwareFX.ChartFX.ExtensionManager.2M(Boolean 1LG, IPersistBase 1LH)

at SoftwareFX.ChartFX.02.6W(String 0WS, Object 0WT, String 0WU, ObjFlags

0WV, Object 0WW)

at SoftwareFX.ChartFX.02.Serialize(String sName, Object obj, String

sType, ObjFlags flags)

at SoftwareFX.ChartFX.Chart.EQ(Boolean 1E6, IPersistBase 1E7, Boolean

1E8)

at SoftwareFX.ChartFX.Chart.F3(IPersistBase 1EN, FileMask 1EO)

at SoftwareFX.ChartFX.Chart.Export(FileFormat format, Stream stream)

at SoftwareFX.ChartFX.Chart.Export(FileFormat format, String fileName)

at

SixDisciplines.Win.UI.Screens._300_000_050_00.OnClickToolbarButton(Object

sender, EventArgs e) in

c:\sdbs\win\ui\screens\shared\sixdisciplines.win.ui.screens._300_000_050_00\

_300_000_050_00.cs:line 772

at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs

args)

at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()

at

Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs

e)

at

Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEve

ntArgs e)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons

button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at

Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message&

m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,

Int32 msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at

System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho

ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,

Int32 pvLoopData)

at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,

ApplicationContext context)

at System.Windows.Forms.Application.Run(ApplicationContext context)

at SixDisciplines.Win.UI.SDBS.ShowMainForm() in

c:\sdbs\win\ui\sdbs\sdbs.cs:line 104

at SixDisciplines.Win.UI.SDBS.Main() in c:\sdbs\win\ui\sdbs\sdbs.cs:line

87

I would like to save the display settings and not the data. Am I missing

something or is this a bug?

-Matt-

Link to comment
Share on other sites

Hello,

We have reproduced the error and this has been sent to the development

department to fix in the next service pack.

JT

Tech. Support

"Matt Hauser" <mhauser@sixdisciplines.com> wrote in message

news:F1owvdpYDHA.3936@WEBSERVER1...

> When I load a chart with the OLAP extenstion and attempt to export using

> this code:

>

> fxChart.FileMask = fxGrid.FileMask | FileMask.All;

>

> fxChart.Export(FileFormat.XML, "C:\\Temp\\ChartFX.xml");

>

>

>

> I get the following exception:

>

> Message: Object reference not set to an instance of an object.

> Source : ChartFX.Olap.WinForms

> System.NullReferenceException: Object reference not set to an instance of

an

> object.

> at SoftwareFX.ChartFX.Olap.WinForms.XmlAnalysisData.2W(Int32 T1, Int32

> T2)

> at SoftwareFX.ChartFX.Olap.WinForms.ClonedData..ctor(F data)

> at SoftwareFX.ChartFX.Olap.WinForms.OlapExtension.0D(Boolean QL,

> IPersistBase QM)

> at SoftwareFX.ChartFX.02.6W(String 0WS, Object 0WT, String 0WU,

ObjFlags

> 0WV, Object 0WW)

> at SoftwareFX.ChartFX.02.Serialize(String sName, Object obj, String

> sType, ObjFlags flags)

> at SoftwareFX.ChartFX.ExtensionManager.2M(Boolean 1LG, IPersistBase

1LH)

> at SoftwareFX.ChartFX.02.6W(String 0WS, Object 0WT, String 0WU,

ObjFlags

> 0WV, Object 0WW)

> at SoftwareFX.ChartFX.02.Serialize(String sName, Object obj, String

> sType, ObjFlags flags)

> at SoftwareFX.ChartFX.Chart.EQ(Boolean 1E6, IPersistBase 1E7, Boolean

> 1E8)

> at SoftwareFX.ChartFX.Chart.F3(IPersistBase 1EN, FileMask 1EO)

> at SoftwareFX.ChartFX.Chart.Export(FileFormat format, Stream stream)

> at SoftwareFX.ChartFX.Chart.Export(FileFormat format, String fileName)

> at

> SixDisciplines.Win.UI.Screens._300_000_050_00.OnClickToolbarButton(Object

> sender, EventArgs e) in

>

c:\sdbs\win\ui\screens\shared\sixdisciplines.win.ui.screens._300_000_050_00\

> _300_000_050_00.cs:line 772

> at

Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.OnItemClicked(EventArgs

> args)

> at Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.PerformClick()

> at

>

Syncfusion.Windows.Forms.Tools.XPMenus.BarRenderer.OnMouseUp(MouseEventArgs

> e)

> at

>

Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.OnMouseUp(MouseEve

> ntArgs e)

> at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons

> button, Int32 clicks)

> at System.Windows.Forms.Control.WndProc(Message& m)

> at

> Syncfusion.Windows.Forms.Tools.XPMenus.BarControlInternal.WndProc(Message&

> m)

> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

> at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,

> Int32 msg, IntPtr wparam, IntPtr lparam)

> at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

> at

>

System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho

> ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32

reason,

> Int32 pvLoopData)

> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,

> ApplicationContext context)

> at System.Windows.Forms.Application.Run(ApplicationContext context)

> at SixDisciplines.Win.UI.SDBS.ShowMainForm() in

> c:\sdbs\win\ui\sdbs\sdbs.cs:line 104

> at SixDisciplines.Win.UI.SDBS.Main() in

c:\sdbs\win\ui\sdbs\sdbs.cs:line

> 87

>

> I would like to save the display settings and not the data. Am I missing

> something or is this a bug?

>

> -Matt-

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...