#include "BIPRINT.H"
int CALLBACK PrepareToPrint( HWND hWnd,
HDC hPrnDC,
LPGPRINT lpPrint,
LPSTR lpFileName,
UINT nMaxPage)
Description
This function prepares to print a single or multi-page image file. In the case of muli-page printing, every page will be printed as a single job. It will display a print dialog box if the lpPrint parameter is set to NULL or the bDisplay member is TRUE, otherwise it will use the parameters supplied by the lpPrint.
Parameters
|
HWND |
hWnd |
Handle to the window. |
|
HDC |
hPrnDC |
Printer DC. if NULL use default printer. |
|
LPGPRINT |
lpPrint |
Pointer to the Print information structure. If NULL, print DialogBox will be displayed. |
|
LPSTR |
lpFileName |
Pointer to file name. |
|
UINT |
nMaxPage |
The number of pages in the document. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
It is zero on success or error code on error. If the Error Code < 0 see GetLastError windows API function to get extended error information.
Requirements
Header : Declared in BIPrint.h; include BIPrint.h.
Library : Use BIPrint.lib.
DLLs : BIPrint.dll.