QueryInterface for interface failed problem
Hello to All
I am the new one, i need help
basically i am using ChartFX.dll and i have created a class with chart setting function and calling it from load event of page it displaying following error:
QueryInterface for interface ChartfxLib.IChartFX failed.
My code is:
public class CChartView
{
protected ChartFX m_Chart;
public CChartView()
{
//
// TODO: Add constructor logic here
//
}
public void ChartSettings()
{
m_Chart = new ChartFX();
//Back Color
Color clr = Color.FromArgb(0,0,234);
m_Chart.RGBBk = (uint)clr.ToArgb();
//Chart Title
m_Chart.set_Title(ChartfxLib.CfxTitle.CHART_TOPTIT ,"GeoMos NetViwer
Chart Demo" );
//Axis Range setting AXIS_Y
m_Chart.Axis[CfxAxisIndex.AXIS_Y].Min =0;
m_Chart.Axis[CfxAxisIndex.AXIS_Y].Max =50;
m_Chart.Axis[CfxAxisIndex.AXIS_Y].STEP =10;
m_Chart.Axis[CfxAxisIndex.AXIS_Y].ResetScale();
//AXIS_X
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(0,"A");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(1,"B");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(2,"C");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(3,"D");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(4,"E");
m_Chart.Axis[CfxAxisIndex.AXIS_X].set_Label(5,"F");
m_Chart.UpdateSizeNow();
}
//Calling from
public class WebForm1 : System.Web.UI.Page
{
protected ChartDemo.ChartView m_Chart;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
m_Chart = new ChartDemo.ChartView();
m_Chart.ChartSettings();
}
}
Please anyone help to resolve this error:
"QueryInterface for interface ChartfxLib.IChartFX failed."
Birendra :(
(Delhi - India)
|