04 2013 档案

摘要:直接代码package com.xfzx.test.POI.main;import com.jacob.activeX.ActiveXComponent;import com.jacob.com.Dispatch;import com.jacob.com.Variant;import com.jacob.com.ComThread;public class WordPrintTest{ public WordPrintTest() { } private static WordPrintTest instance; private Dispatch doc = null; ... 阅读全文
posted @ 2013-04-09 15:48 郑小明 阅读(3031) 评论(0) 推荐(0) 编辑
摘要:还是直接贴代码喽package com.xfzx.test.POI.main;import com.jacob.activeX.ActiveXComponent;import com.jacob.com.ComThread;import com.jacob.com.Dispatch;import com.jacob.com.Variant;public class JacobPress { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub pr... 阅读全文
posted @ 2013-04-09 14:20 郑小明 阅读(2537) 评论(0) 推荐(0) 编辑
摘要:File file = new File(filePath); FileInputStream in = null; ByteArrayOutputStream out = new ByteArrayOutputStream(); try { in = new FileInputStream(file); byte[] buffer = new byte[in.available()]; in.read(buffer); out.write(buffer); } catch (Exception e) { e.printStackTrace(); } finally { try { if (. 阅读全文
posted @ 2013-04-09 14:17 郑小明 阅读(15454) 评论(0) 推荐(0) 编辑