JavaFX和打印到Epson打印机 [英] JavaFX and printing to Epson printer

查看:1238
本文介绍了JavaFX和打印到Epson打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道有关爱普生打印机的问题的答案:

I need to know the answer of those questions, concerning Epson printers :


  1. 我可以使用 Javafx 打印用于打印到EPSON打印机的API?或者我应该使用 JavaPOS API?

  1. Can I use Javafx print API to print to an EPSON printer ? or should I use the JavaPOS API ?

如何将图像打印到该打印机?

How do I print Images to that printer ?

如何设置页面大小?

我有Epson TM-20II打印机。

I have Epson TM-20II printer.

推荐答案

经过一些epson打印机的研究和使用经验(问题中的模型)

After some research and experience with an epson printer (the model in the question)


我可以使用Javafx打印API打印到EPSON打印机吗?或者我应该
使用JavaPOS API?
如何将图像打印到该打印机?
无论使用何种api,都可以使用该打印机打印任何文件。

Can I use Javafx print API to print to an EPSON printer ? or should I use the JavaPOS API ? How do I print Images to that printer ? Any document can be printed using that printer whatever api is used.

当然。打印api和JavaFX中存在的打印API可用于打印到该打印机。

Of course. A print api and the one existing in JavaFX can be used to print to that printer.


如何设置页面大小?

How to setup page size ?

可以使用嵌入到JavaFx api中的帮助器方法创建页面,如下所示:

A page can be created using a helper method, embedded into JavaFx api, as follows :

PrintHelper.createPaper("PapperName", width, height, Units.MM);




width - > int

height - > int

这篇关于JavaFX和打印到Epson打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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