SetTextOutputExistingFileAction

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.

SetTextOutputExistingFileAction(pDevMode As Long, iValue As Long) As Boolean

 

Input value   - handle to the BlackIceDEVMODE structure

Input value   -one of the following values:

0:         Append the new text output to the end of the existing document. (default)

1:         Delete the existing file, and generate the new text output with the same filename.

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, FALSE otherwise.

 

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