如何在java中打印excel文件和word文档? [英] How to print excel file and word document in java?
本文介绍了如何在java中打印excel文件和word文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将excel文件和word文档打印到打印机,但我不知道如何用Java编写。
I am trying to print excel file and word document to printer, but I don't know how to do it in Java.
任何人都可以帮助我和提供代码示例?
Can anyone please help me and provide the code example?
推荐答案
Desktop.getDesktop().print(new File("resume.doc"));
这篇关于如何在java中打印excel文件和word文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文