bvPrint
The function is used for printing.
BESTVIEWAPI(LONG) bvPrint(HWND hParent, LONG
lNumPages, PCOREPREVIEW_CALLBACK pCorePreviewCallback,
LPCTSTR pszDocumentName, LPCTSTR pszFileName,
LPCTSTR pszPrinterName);
Parameters:
-
hParent
- the handle of the parent window
-
lNumPages
- the total number of pages in the document
-
pCorePreviewCallback
- pointer to COREPREVIEW_CALLBACK structure
-
pszDocumentName
- the name of the document which is printed. The name appears in the printer's
job list.
-
pszFileName
- in case you want to print your document into a file you have to give the
filename
-
pszPrinterName - if you want to print directly, without
"Printer select" dialog box you have to give here the name of the printer you
want to print to
Return value: nonzero means success, zero - failure.