关于java程序调用打印机打印的问题
我的目的是打印从数据库查询出来的结果集,然后把结果用String类型排好格式准备输出以下是我的默认打印机支持的DocFlavor:image/gif;class="[B"...
我的目的是打印从数据库查询出来的结果集,然后把结果用String类型排好格式准备输出
以下是我的默认打印机支持的DocFlavor:
image/gif; class="[B"
image/gif; class="java.io.InputStream"
image/gif; class="java.net.URL"
image/jpeg; class="[B"
image/jpeg; class="java.io.InputStream"
image/jpeg; class="java.net.URL"
image/png; class="[B"
image/png; class="java.io.InputStream"
image/png; class="java.net.URL"
application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
application/octet-stream; class="[B"
application/octet-stream; class="java.net.URL"
application/octet-stream; class="java.io.InputStream"
The printer does not support the appropriate DocFlavor
请问我该选择哪个DocFlavor?
也就是我需要支持的 DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8;
别贴网上的链接 展开
以下是我的默认打印机支持的DocFlavor:
image/gif; class="[B"
image/gif; class="java.io.InputStream"
image/gif; class="java.net.URL"
image/jpeg; class="[B"
image/jpeg; class="java.io.InputStream"
image/jpeg; class="java.net.URL"
image/png; class="[B"
image/png; class="java.io.InputStream"
image/png; class="java.net.URL"
application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
application/octet-stream; class="[B"
application/octet-stream; class="java.net.URL"
application/octet-stream; class="java.io.InputStream"
The printer does not support the appropriate DocFlavor
请问我该选择哪个DocFlavor?
也就是我需要支持的 DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8;
别贴网上的链接 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询