[英]How can I send a fax with my Qt application?
I have a Qt application which needs to be able to send faxes. 我有一个Qt应用程序,它需要能够发送传真。 I'm wondering if there are any fax libraries I can make use of. 我想知道是否可以使用任何传真库。 I haven't been able to find an obvious solution, so I would appreciate your help. 我还没有找到明显的解决方案,因此,感谢您的帮助。
The application has to run on windows xp / windows 7. 该应用程序必须在Windows XP / Windows 7上运行。
If I am unclear/you need more information, please let me know. 如果我不清楚/您需要更多信息,请告诉我。
EDIT 编辑
There will be a fax machine. 将会有传真机。 I'm not sure how the fax drivers work, but the application should support every fax machine. 我不确定传真驱动程序如何工作,但是应用程序应该支持每台传真机。
Windows has a Fax Service Extended COM API Windows具有传真服务扩展COM API
Complete with code samples. 完成代码示例。
Configuration http://msdn.microsoft.com/en-us/library/windows/desktop/ms692969(v=vs.85).aspx 配置http://msdn.microsoft.com/zh-cn/library/windows/desktop/ms692969(v=vs.85).aspx
Sending http://msdn.microsoft.com/en-us/library/windows/desktop/ms693482(v=vs.85).aspx 发送http://msdn.microsoft.com/en-us/library/windows/desktop/ms693482(v=vs.85).aspx
I'd make sure your installed fax has a printer driver, that lets you print to it. 我将确保您安装的传真具有打印机驱动程序,以便您进行打印。 Then use the QT print API: http://qt-project.org/doc/qt-5.0/printing.html 然后使用QT打印API: http : //qt-project.org/doc/qt-5.0/printing.html
I'd try it with the print dialog first, and choose the fax machine manually. 我会先在“打印”对话框中尝试一下,然后手动选择传真机。
Then check through all the data in QPrinter 然后检查QPrinter中的所有数据
To see which one has the fax number. 查看哪个有传真号码。 I would hope that it might be the OutPutFileName . 我希望它可能是OutPutFileName 。
The other way might be to use Microsoft Scripting to send the fax, wrapped in the QtActiveX module 另一种方法可能是使用Microsoft脚本来发送包装在QtActiveX模块中的传真
Finally I googled this: http://msdn.microsoft.com/en-us/library/windows/desktop/ms693482(v=vs.85).aspx 最后我用谷歌搜索了一下: http : //msdn.microsoft.com/zh-cn/library/windows/desktop/ms693482( v=vs.85) .aspx
Sorry it's not a complete answer. 抱歉,这不是一个完整的答案。 I hope it can point you in the right direction though. 我希望它可以为您指明正确的方向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.