java 生成ppt_Java 创建 PowerPoint 图表

  • Post author:
  • Post category:java


import com.spire.pdf.tables.table.DataColumn;

import com.spire.pdf.tables.table.DataRow;

import com.spire.pdf.tables.table.DataTable;

import com.spire.pdf.tables.table.DataTypes;

import com.spire.presentation.FileFormat;

import com.spire.presentation.KnownColors;

import com.spire.presentation.Presentation;

import com.spire.presentation.charts.ChartType;

import com.spire.presentation.charts.IChart;

import com.spire.presentation.drawing.FillFormatType;import java.awt.geom.Rectangle2D;

public class CreateChart {

public static void main(String[] args) throws Exception {

//实例化一个Presentation对象

Presentation presentation = new Presentation();

//插入柱形图

Rectangle2D.Double rect = new Rectangle2D.Double(40, 100, 550, 320);

IChart chart = null;

chart = presentation.getSlides().get(0)



版权声明:本文为weixin_35843096原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。