如何使用wxWidgets获取打印机的状态和发送到打印机的作业
How to get the status of printer and the job sent to a printer using wxWidgets
如何使用wxWidgets获取打印机的状态和发送到打印机的作业。找到打印机
我要做的事情是:1. 找一台打印机。2. 检查打印机状态。3.将作业发送打印。4. 作业失败/完成后返回。
您学习了wxWidgets打印概述吗?
http://docs.wxwidgets.org/stable/wx_printingoverview.html您可以查询print
调用后的最后一个错误,如下所示:
wxPrinter printer;
MyPrintout printout("My printout");
printer.Print(this, &printout, true);
wxPrinterError errorCode = printer.GetLastError();
返回值可以是:
wxPRINTER_NO_ERROR No error happened.
wxPRINTER_CANCELLED The user cancelled printing.
wxPRINTER_ERROR There was an error during printing.
查看更多参考:http://docs.wxwidgets.org/stable/wx_wxprinter.html#wxprinterprint
相关文章:
- 将执行、作业和WinAPI相乘
- 为什么我的多线程作业队列崩溃
- 正在解码MSVC 32位版本的程序集(作业).没有手术做什么
- 使用"Task"函数指针队列定义作业管理器
- C++秘密消息学校作业
- 动态类的分段错误(家庭作业问题)
- 我已经阅读了很多关于 2d 数组的信息,但我在作业中使用它时遇到了麻烦
- CMAKE:动态作业池更改
- C++17 排序:作业左侧的后递增
- 所以我正在为我的学校作业练习继承,但我无法正确实施标题保护
- 类作业中的非左值
- 不知道如何在家庭作业任务中实现一件事
- 我正在尝试为家庭作业加密邮件
- 如何使用打印到 PDF 打印机在 MFC 和 CView 中以编程方式打印而不提示输入文件名?
- 将作业传递给另一个函数,而不会延迟 arduino
- 正在取消线程池中运行的任意作业
- 由 JOB 中的进程启动的子进程是否可以将 JOB 属性设置为脱离作业?
- 我正在尝试解决英特尔架构并行基础课程中关于 Coursera 的一项作业
- 复印作业操作员说明
- 如何使用wxWidgets获取打印机的状态和发送到打印机的作业