SetExistingFileAction

 

#include “BlackIceDEVMODE.h”

 

BOOL SetExistingFileAction(BlackIceDEVMODE* pBlackIceDevMode, DWORD dwValue)

Description

This function sets how the printer should handle if a file with the same name as the new output file already exists in the output directory.

Parameters

BlackIceDEVMODE* pBlackIceDevMode        - pointer to the BlackIceDEVMODE structure

DWORD dwValue   - The space detection method value. One of the values of the BLF_EXISTING enum:

 

BLF_EXISTING_APPEND     = 0,  // Append the new document to the end of the existing document, if the file format allows it.

 

BLF_EXISTING_OVERWRITE  = 1,  // Delete the existing file, and generate the new output document with the same filename.

 

BLF_EXISTING_RENAME     = 2   // Leave the existing file, and rename the new output document by appending a number to the end of the file name.

For example: Document(2).pdf, Document(3).pdf. (default)

Return value

TRUE on success, otherwise FALSE

Programming Notes

None

Code Example

None