R
roger.camargo
Well the idea is imple, creating a chartspace bound to a cube file.
When inserting a Category to the chart it throws a COMException
AxChartSpace chartSpace;
chartSpace = new AxChartSpace();
Controls.Add(chartSpace);
chartSpace.ConnectionString = @"Provider=MSOLAP.2;Persist
Security Info=False;Location=C:\example.cub;Initial
Catalog=example;Client Cache Size=25;Auto Synch Period=10000";
chartSpace.DataMember = "example";
ChChart chart = chartSpace.Charts[0];
chart.SetData(ChartDimensionsEnum.chDimCategories,
(int)ChartSpecialDataSourcesEnum.chDataBound,
"Time");
The exception is the following:
Message = "Error HRESULT E_FAIL has been returned from a call to a COM
component."
Source = "Microsoft.Office.Interop.Owc11"
StackTrace = "
at
Microsoft.Office.Interop.Owc11.ChChart.SetData(ChartDimensionsEnum
Dimension, Int32 DataSourceIndex, Object DataReference)
at WindowsFormsApplication5.Form1.button3_Click(Object sender,
EventArgs e) in C:\Documents and Settings\Jhonny\My Documents\Visual
Studio 2008\Projects
\WindowsFormsApplication5\WindowsFormsApplication5\Form1.cs:line
39 ..."
TargetSite = "{Void
SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum, Int32,
System.Object)}"
Does anyone here try to do the same as me, in .NET and make it work?
How? Can someone send me the OWC wrappers (maybe that's what's wrong)?
Please I'm loosing my mind T.T !!!
When inserting a Category to the chart it throws a COMException
AxChartSpace chartSpace;
chartSpace = new AxChartSpace();
Controls.Add(chartSpace);
chartSpace.ConnectionString = @"Provider=MSOLAP.2;Persist
Security Info=False;Location=C:\example.cub;Initial
Catalog=example;Client Cache Size=25;Auto Synch Period=10000";
chartSpace.DataMember = "example";
ChChart chart = chartSpace.Charts[0];
chart.SetData(ChartDimensionsEnum.chDimCategories,
(int)ChartSpecialDataSourcesEnum.chDataBound,
"Time");
The exception is the following:
Message = "Error HRESULT E_FAIL has been returned from a call to a COM
component."
Source = "Microsoft.Office.Interop.Owc11"
StackTrace = "
at
Microsoft.Office.Interop.Owc11.ChChart.SetData(ChartDimensionsEnum
Dimension, Int32 DataSourceIndex, Object DataReference)
at WindowsFormsApplication5.Form1.button3_Click(Object sender,
EventArgs e) in C:\Documents and Settings\Jhonny\My Documents\Visual
Studio 2008\Projects
\WindowsFormsApplication5\WindowsFormsApplication5\Form1.cs:line
39 ..."
TargetSite = "{Void
SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum, Int32,
System.Object)}"
Does anyone here try to do the same as me, in .NET and make it work?
How? Can someone send me the OWC wrappers (maybe that's what's wrong)?
Please I'm loosing my mind T.T !!!