Kbase P186533: Can COPY-LOB append two or more TIF files?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/2/2011 |
|
Status: Unverified
GOAL:
Can COPY-LOB append two or more TIF files?
GOAL:
Why do I not see the two images appended using COPY-LOB in the Windows Picture and Fax Viewer?
FACT(s) (Environment):
Windows
OpenEdge 10.1x
OpenEdge 10.2x
FIX:
Although COPY-LOB will append the two TIF files, appending or combining two files is not enough to construct a multi page TIF file. Merging or combining two TIF files is a fairly complex process that requires system calls and intimate knowledge of the TIF file format structure. This is why the two images are not seen (for example in the Windows Picture and Fax Viewer) after appending them using the COPY-LOB statement. The DOS COPY command or any other utility to append one file to another will yield the same result as COPY-LOB.
An alternate way to combine two or more TIF files into one TIF file so that it can be viewed as a multi-page TIF file, without having to delve deep into the study of TIF file format and structure, is to use a third party executable capable of doing this. One such tool is IrfanView, a freeware from: http://www.irfanview.com/ . IrfanView has a command line capability that will allow two or more TIF files to be combined into one multi-page TIF file. For example, the following code combines the TIF files: "picture1.TIF" and "picture2.TIF" into a multi-page TIF file: "Result.TIF":
DEFINE VARIABLE cCommandLine AS CHARACTER NO-UNDO.
ASSIGN
cCommandLine = '"C:\Program Files\IrfanView\i_view32.exe" /multitif=(Result.tif,picture1.tif,picture2.tif)'.
OS-COMMAND SILENT VALUE(cCommandLine).