Description Opens a TIFF format file for copying. This method is designed to use with the CopyTiffImage method only. Use this method when you want to split a multipage TIFF file to single page TIFF files, or you want to merge single page TIFF files to one, multipage TIFF file. If you need only a few pages, use the CopyTiffImage method instead. Do not use any other method to the specified file while it will not be closed with the CloseCopyHandle, except the CopyTiffImage method, otherwise your program may hang. This method keeps on top the performance of the operation, and doesn’t deal with any parameter checking, including page number existance.
Syntax Handle = [BITIFF.]OpenForCopy FileName Mode
Remarks Handle LONGLONG The handle of the opened TIFF file. If this handle is 0, an error has occurred.
FileName String The name of the source or the the destination file.
Mode Integer The mode the file will be opened in.
tifomRead= 0 Opens a file for reading only.
tifomAppend= 2 Opens a file for appending the images to that file, or create a new file, if it doesn’t exist.
tifomCreate= 3 Opens a new file always, or overwrite an existing one.
See Also CopyTiffImage Method, CloseCopyHandle Method