You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.dsideal.base.Tools.Test ;
import com.dsideal.base.Tools.FillData.ExcelKit.ExcelKit ;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException ;
import org.dom4j.DocumentException ;
import org.xml.sax.SAXException ;
import javax.xml.parsers.ParserConfigurationException ;
import javax.xml.xpath.XPathExpressionException ;
import java.io.IOException ;
import java.util.List ;
public class TestOutSideExcel {
public static void main ( String [ ] args ) throws IOException , InvalidFormatException , InterruptedException , ParserConfigurationException , SAXException , XPathExpressionException , DocumentException {
String sourceDoc = "c:/《威信县) 人口变化及其对教育的影响》2.docx" ;
//需要第几个图表
for ( int chartNumber = 1 ; chartNumber < = 1 ; chartNumber + + ) {
System . out . println ( "正在处理第" + chartNumber + "个图表的信息~" ) ;
//读取图表
List < List < String > > list = ExcelKit . getChartData ( sourceDoc , chartNumber , 0 ) ;
ExcelKit . printTable ( list ) ;
}
}
}