SetTextOutputExistingFileAction

 

#include “BlackIceDEVMODE.h”

 

BOOL SetTextOutputExistingFileAction(BlackIceDEVMODE* pBlackIceDevMode, DWORD dwValue)

Description

This function sets how the printer should handle if a file with the same name as the text 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 TEXTOUTPUT_EXISTING enum:

 

TEXTOUTPUT_EXISTING_APPEND    = 0,  // Append the new text output to the end of the existing document. (default)

 

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

 

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

For example: Text Output(2).txt, Text Output(3).txt.

Return value

TRUE on success, otherwise FALSE

Programming Notes

None

Code Example

None