如何打印使用Apache浦二和java做了一个工作簿文件? [英] How to print a Workbook file made using Apache Poi and java?

查看:126
本文介绍了如何打印使用Apache浦二和java做了一个工作簿文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中创建一个页面工作簿文件的,需要打开打印对话框,并打印这些文件了。我知道如何打开打印对话框,然后一切,我只是找不到怎么告诉系统,这是工作簿文件WB是的是我想打印的内容。因此,打开对话框是行不通的,除非它知道什么,我想用它来打印。可能有人至少给我在正确的方向没有告诉我阅读Java打印对话框教程。现在我已经读过他们三次,我不明白如何使我的工作情况。/我没有处理图形对象,我处理工作簿对象

I create one page workbook files in eclipse and need to open the print dialog box and print these files off. I understand how to open the print dialog box and everything, i just can't find how to tell the system that it is the workbook file "wb" that is what i'm wanting to print. So opening the dialog just doesn't work unless it knows what i'm trying to print with it. Could someone at least send me in the right direction Without telling me to read the java print dialog tutorials. I've read them three times now and i don't understand how to make my situation work :/ I'm not handling graphic objects, i'm handling workbook objects.

推荐答案

虽然有一些传言这说这是不可能做到这一点直接的,你可能想先将其转换成PDF(的 1 ,的 2 ),然后打印

Although there are some rumors around here that say it's not possible to do it directly, you might want to convert it first to PDF (1,2) and then print it.

我还没有尝试PDFBOX打印,如果结果是令人失望的,这可能是可以使用自由报办公室不仅作为转换器,也可作为打印引擎...

I haven't tried pdfbox printing, if the results are disappointing, it might be possible to use libre office not only as a converter, but also as the printing engine ...

这篇关于如何打印使用Apache浦二和java做了一个工作簿文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆