bvConfigureDevMode
The function is used to configure DEVMODE structure according to
PCOREPREVIEW_PAGESIZE settings.
BESTVIEWAPI(BOOL) bvConfigureDevMode(LPCTSTR pszPrinterName,
PDEVMODE pDevMode, PCOREPREVIEW_PAGESIZE pCorePreviewPageSize,
LONG nCopies,LONG bCollate);
Parameters:
-
pszPrinterName
- the printer's name
-
pDevMode
- pointer to printer's DEVMODE structure
-
pCorePreviewPageSize
- pointer to PCOREPREVIEW_PAGESIZE structure
-
nCopies
- the number of copies of document
-
bCollate - the flag shows whether DM_COLLATE option has to be
set
Return value: nonzero means success, zero - failure.