GetExistingFileAction

 

#include “BlackIceDEVMODE.h”

 

DWORD GetExistingFileAction(BlackIceDEVMODE* pBlackIceDevMode)

Description

This function retrieves how the printer handles if a file with the same name as the new output file already exists in the output directory.

Parameters

Input value    - pointer to the BlackIceDEVMODE structure

Return 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)

Programming Notes

None

Code Example

None