owc?borland C++里面的那个owc?

解决方案 »

  1.   


    OWC11.ChartSpaceClass  laySpace=new ChartSpaceClass();
    //ChartSpaceの中に図表を添加します
    OWC11.ChChart  chart=laySpace.Charts.Add(0);
    OWC11.ChSeries ChSeries1=chart.SeriesCollection.Add(0);
    chart.Type=OWC11.ChartChartTypeEnum.chChartTypeBarClustered;  //线形图
    //                 chart.Type=OWC11.ChartChartTypeEnum.chChartTypeArea; //面积图
    // chart.Type=OWC11.ChartChartTypeEnum.chChartTypeColumnClustered; //柱形图
    // chart.Type=OWC11.ChartChartTypeEnum.chChartTypePie;//圆饼图
    // chart.Type=OWC11.ChartChartTypeEnum.chChartTypeLineMarkers;//折线图
    chart.HasLegend=true;
    chart.HasTitle=true;
    chart.Title.Caption="";
    chart.Title.Font.Size=20;
    //X軸标题
    chart.Axes[0].HasTitle=true;
    chart.Axes[0].Title.Caption="";
    chart.Axes[0].Font.Size=12;
    //Y軸标题
    chart.Axes[1].HasTitle=true;
    chart.Axes[1].Title.Caption="";
    chart.Axes[1].Font.Size=12 ; ChSeries1.SetData(OWC11.ChartDimensionsEnum.chDimCategories,(int)OWC11.ChartSpecialDataSourcesEnum.chDataLiteral,strXvalue);
    //添加值
    ChSeries1.SetData(OWC11.ChartDimensionsEnum.chDimValues,(int)OWC11.ChartSpecialDataSourcesEnum.chDataLiteral,strYvalue);
    ChSeries1.Line.Color="yellow";
    ChSeries1.Interior.Color="yellow";以前写的一个。希望对你有帮助。
      

  2.   


    Response.Buffer=true;
    Response.BinaryWrite((byte[])(laySpace.GetPicture("png",800,500)));对了还有这句加上就可以出来图片了。