SetExistingFileAction

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.

SetExistingFileAction(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 document to the end of the existing document, if the file format allows it.

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

2:         Leave the existing file, and rename the new output document by appending a number to the end of the file.

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

Return value - TRUE on success, FALSE otherwise.

 

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