GetWmFirstImageFile

Gets the path and name of the watermark image. This image will be the watermark on the first printed image, when the ‘Unique watermark on the first page’ option is enabled. The path and filename of the image file is stored in the registry under the HKEY_CURRENT_USER key.

 

GetWmFirstImageFile(pDevMode As Long, Portrait As Boolean) As String

 

Input value:pDevMode        - handle to the BlackIceDEVMODE structure.

Input value:Portrait  - If this parameter is TRUE, you get the path and filename of the watermark for portrait pages, otherwise you get the path and filename of the watermark for landscape pages.

Return value - Path and name of the watermark image file.

 

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