同时用delphi写的dll组件,用来输出统计图形,在asp中使用正常,写法如下
----------------------------------------------
  Set AspChart = Server.CreateObject("AspChart.ARQStat")  
  AspChart.ChartType  = iChartType
  AspChart.Title = StatTitle
  AspChart.Value = StatValue
  AspChart.View3D = bView3D
  AspChart.Width = imgWidth
  AspChart.Height = imgHeight
  AspChart.Alignment = iAlignment
  AspChart.ChartTitle = SChartTitle
  FileName = AspChart.DrawChart()
---------------------------------------------
可是在.net中执行到画图l_ArqStat.DrawChart();这一句时报“灾难性错误”,请高手指教这可能是什么原因?
.net中写法如下:
AspChart.ARQStat l_ArqStat = new AspChart.ARQStatClass();
try
{ l_ArqStat.ChartType = 2;
l_ArqStat.Title = "a;b;c;d;e;f;g;h";
l_ArqStat.Value = "1;1;1;1;1;1;1;1";
l_ArqStat.View3D = true;
l_ArqStat.Width = 800;
l_ArqStat.Height = 600;
l_ArqStat.Alignment = 1;
l_ArqStat.ChartTitle = "新增申报统计";
string FileName = l_ArqStat.DrawChart();
}
catch(Exception ex)
{
string str = ex.Message;
return ;
}
finally
{
l_ArqStat = null;
}