Platform SDK: Fax Services |
This functionality is currently available only in the Win32 environment. It is not available in the COM implementation environment.
A fax client application does not require a connection to a fax server to print a fax to a printer device context (DC). Instead of calling the FaxSendDocument or FaxSendDocumentForBroadcast functions, an application can provide transmission information directly to the graphics device interface (GDI) functions the Fax Service Client API provides. This enables the client application to transmit an active document by printing it directly to a printer DC. The fax client GDI functions include the FaxStartPrintJob and FaxPrintCoverpage functions.
Since the fax GDI functions use the fax printer driver, you must specify the name of a connected fax printer when you call the FaxStartPrintJob function. The printer can be a local printer, for example, "printername", or a remote printer, such as "\\machinename\printername". If you pass a NULL PrinterName parameter to FaxStartPrintJob, it specifies the local fax printer.
The FaxStartPrintJob function returns a handle to a printer DC. Note that a fax client application should not call the CreateDC Win32 GDI function to create the fax printer DC; nor should it call the StartDoc printing function to start printing a fax document. Instead, the application should call the FaxStartPrintJob function.
To print a fax to a printer device context
For more information, see the Printing and Print Spooler reference section.