parent
10edfd7e73
commit
b1ba0f4687
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="aspose-cells-20.7-crack">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../FengHuang/ExtendJar/aspose-cells-20.7-crack.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="aspose-words-20.12-jdk17-crack">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../FengHuang/ExtendJar/aspose-words-20.12-jdk17-crack.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,27 @@
|
||||
package com.dsideal.base.Tools.FillData.Test;
|
||||
|
||||
import com.aspose.words.*;
|
||||
import com.aspose.words.Chart;
|
||||
import com.aspose.words.ChartType;
|
||||
import com.aspose.words.Shape;
|
||||
|
||||
public class TestAspose {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
String sourceWord = "c:/西双版纳州人口变化及其对教育的影响20240420.docx";
|
||||
|
||||
Document doc = new Document();
|
||||
DocumentBuilder builder = new DocumentBuilder(doc);
|
||||
|
||||
// Insert a chart shape with a document builder and get its chart.
|
||||
Shape chartShape = builder.insertChart(ChartType.BAR, 400.0, 300.0);
|
||||
Chart chart = chartShape.getChart();
|
||||
|
||||
ChartTitle title = chart.getTitle();
|
||||
title.setText("My Chart");
|
||||
title.setShow(true);
|
||||
title.setOverlay(true);
|
||||
|
||||
doc.save( "c:/Charts.ChartTitle.docx");
|
||||
}
|
||||
}
|
Loading…
Reference in new issue