[英]Can i print using FIleOutputStream on a printer
我可以在打印機上使用 FIleOutputStream 進行打印嗎?
(我的目標是 windows 平台,尤其是 win32)例如:
FileOutputStream fos = new FileOutputStream("lpt1");
fos.print("testing testing testing testing...");
這兩行可以在打印機上打印嗎?
如果沒有,請提出一種方法。
我認為Java 教程路徑的打印課應該可以幫助你。 如果它不起作用,請發布具體問題。我遇到的另一個鏈接實際上向您展示了如何“打印”文本文件,值得一試。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.