GetTextOutputExistingFileAction

 

#include “BlackIceDEVMODE.h”

 

DWORD GetTextOutputExistingFileAction(BlackIceDEVMODE* pBlackIceDevMode)

Description

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

Parameters

Input value   - pointer to the BlackIceDEVMODE structure

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

Programming Notes

None

Code Example

None