SetSelectedPages

 

Sets the pages to print when the “Print Selected Pages Only” feature is enabled. The feature can be enabled using the SetPrintSelectedPagesOnly function.

Specify the page numbers and/or page ranges separated by commas counting from the start of the document.

For example: 1,2,5-12

 

SetSelectedPages (pBlackIceDEVMODE As Long, pValue As String) As Boolean

 

pBlackIceDEVMODE

- pointer to the BlackIceDEVMODE structure.

pValue

- the list of pages.

Return value

- TRUE on success, otherwise FALSE.

 

NOTE: For 32-bit applications, use pBlackIceDEVMODE as Integer, instead of Long.