GetExistingFileAction

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.

GetExistingFileAction(pDevMode As Long) As Long

 

Input value    - handle to the BlackIceDEVMODE structure

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

 

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