1.office文档(word、ppt、excel)如何转换成图片?
2.电子白板如何实现文档共享功能?
3、网上找了一个jcom实现office文档转pdf的例子运行后出错,如下:
- Java code
package com.test.word;import jp.ne.so_net.ga2.no_ji.jcom.IDispatch; import jp.ne.so_net.ga2.no_ji.jcom.ReleaseManager; public class Office2Pdf { public void createPDF(String officePath,String pdfPath) throws Exception { ReleaseManager rm = null; IDispatch app = null; try { rm=new ReleaseManager(); [color=#FF0000] app = new IDispatch(rm, "PDFMakerAPI.PDFMakerApp"); [/color] [color=#0000FF] //这里变态出问题,而且里面参数都可以写什么[/color] app.method("CreatePDF",new Object[]{officePath,pdfPath}); } catch (Exception e) { throw e; } finally { try { app=null; rm.release(); rm = null; } catch (Exception e) { throw e; } } } public static void main(String[] args) throws Exception { Office2Pdf one=new Office2Pdf(); one.createPDF("E:\\codigg.ppt","E:\\codigg-ppt.pdf"); one.createPDF("E:\\codigg.doc","E:\\codigg-doc.pdf"); one.createPDF("E:\\codigg.xls","E:\\codigg-xls.pdf"); } } 错误提示:[color=#FF0000]Exception in thread "main" jp.ne.so_net.ga2.no_ji.jcom.JComException: createInstance() failed HRESULT=0x800401F3L at jp.ne.so_net.ga2.no_ji.jcom.IDispatch._create(Native Method) at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.create(IDispatch.java:84) at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.<init>(IDispatch.java:46) at com.test.word.Office2Pdf.createPDF(Office2Pdf.java:12) at com.test.word.Office2Pdf.main(Office2Pdf.java:29)[/color]
感觉会的就帮忙解决一下,感觉变态的就帮忙顶一下谢了!!!
------解决方案--------------------------------------------------------
帮顶,这几个问题都没见过。
------解决方案--------------------------------------------------------
复杂,帮顶!
------解决方案--------------------------------------------------------
Office 文档转成 PDF 的软件都是收费的,最有名的就是 Adobe Acrobat Professional
------解决方案--------------------------------------------------------
mark
------解决方案--------------------------------------------------------
确实很变态!都没听说过!
------解决方案--------------------------------------------------------
没用过!
------解决方案--------------------------------------------------------
应该是可以的,LZ再等等高手帮忙吧,因为好像这方面碰到的次数不多
------解决方案--------------------------------------------------------
前人已经实现的功能,自己就不用再开发了。帮顶。。。。
------解决方案--------------------------------------------------------
呵呵。。。这种问题还真没碰见过