How can I send a fax with my Qt application?
Question
I have a Qt application which needs to be able to send faxes. 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.
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.
Solution
Windows has a Fax Service Extended COM API
Complete with code samples.
Configuration http://msdn.microsoft.com/en-us/library/windows/desktop/ms692969(v=vs.85).aspx
Sending http://msdn.microsoft.com/en-us/library/windows/desktop/ms693482(v=vs.85).aspx
OTHER TIPS
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
I'd try it with the print dialog first, and choose the fax machine manually.
Then check through all the data in QPrinter
To see which one has the fax number. I would hope that it might be the OutPutFileName.
The other way might be to use Microsoft Scripting to send the fax, wrapped in the QtActiveX module
Finally I googled this: http://msdn.microsoft.com/en-us/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.