BIAPGetPageRange

 

#include "BiAutoPrint.h"

 

BOOL BIAPGetPageRange(LPCTSTR szPrinterName, LPTSTR szRange, DWORD* dwCount);

 

Description

This function retrieves the currently selected page ranges. The ranges are specified as a string containing page numbers and/or page ranges separated by commas counting from the start of the document. For example, “1,2,5-12”. Empty string means all pages are printed. This function is supported by Black Ice Printer Drivers version 15.80 and above.

 

Parameters

Input value: szPrinterName

- Printer Name (string).

Output value: szRange

- Page ranges (string).

Input/Output value: dwCount

- Pointer to a DWORD variable tha contains the Length of the szRange buffer in characters. If szRange is NULL, it returns the required buffer size.

 

Return value

TRUE on success, otherwise FALSE.

 

Requirements

Header:

BiAutoPrint.h

Library:

BiAutoPrint32.lib (for 32 bit)

BiAutoPrint64.lib (for 64 bit)

DLL:

BiAutoPrint32.dll (for 32 bit)

BiAutoPrint64.dll (for 64 bit)

 

This function is supported by Black Ice Printer Drivers version 15.80 and above.