public class Workbook extends Instance
构造器和说明 |
---|
Workbook(com.jacob.activeX.ActiveXComponent app,
com.jacob.com.Dispatch dispatch) |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭文档
|
void |
doSaveAsHtml(String htmlFilePath)
文档保存为html
|
void |
doSaveAsPdf(String pdfFilePath)
文档保存为pdf
|
void |
save()
保存文档更改的内容
|
void |
saveAs(String filePathName)
文档另存为到新的地址
|
saveAsHtml, saveAsPdf
getDispatch
public Workbook(com.jacob.activeX.ActiveXComponent app, com.jacob.com.Dispatch dispatch)
public void doSaveAsHtml(String htmlFilePath)
Instance
doSaveAsHtml
在类中 Instance
htmlFilePath
- html文档地址public void doSaveAsPdf(String pdfFilePath)
Instance
doSaveAsPdf
在类中 Instance
pdfFilePath
- pdf文档地址