Home|Download|Buy online|Affiliates|Search|Feedback|Site Map|ReviewsUse our online RSS & XML news feeds to get the latest news about our products delivered to your desktop... RSS feed    04.02.2012
Home»BestView preview library»SDK»Exported functions
Find out more how to use BestView...
bvPrint

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.

Valid HTML 4.01 Transitional© PVL team, 2004-2012, all rights reserved. This Web site and its entire contents are for personal use only and may not be copied, reproduced, modified, published or distributed in any way,without PVL team's prior written permission.