@RTAddPictureFile
Syntax
@RTAddPictureFile(PICFILEHANDLE1;FILETYPE2;HRT3);
@RTAddPictureFile(PICFILEHANDLE1;FILETYPE2;HRT3;FNIFD4);
@RTAddPictureFile(PICFILEHANDLE1;FILETYPE2;HRT3;FNIFD4;FNLISTDISPSIZE5);
Description
This function added to the HRT field HRT3 the content the image file with FH (FILEHANDLE) PICFILEHANDLE1.
With Parameter FN FILETYPE2 the type of the image file must be specified.
Return value:
On success, the modified HRT field HRT3 is returned; otherwise @ERROR.
FILEHANDLE PICFILEHANDLE:
FILEHANDLE to a image file opened in binary mode.
FN FILETYPE:
1=TIFF File monochrom (T4 Compression in reverse bit per byte order)
FN FNIFD:
If a TIFF file contains multiple images, this parameter can be used to specify which image should be appended to the RT field.
Specify 0 for image 1.
(See @GetPictureFileInfo).
FN FNLISTDISPSIZE:
list with 2 elements:
element 1 width of the image in Inch.
element 2 length of the image in Inch.
Example: @RTAddPictureFile(PICFILEHANDLE;FILETYPE;RT);
DBname:="TESTDB\\TESTDB1.NSF";
TiffFilename:="1P001.TIF";
dbh1:=@OpenDB(DBname);
noteh1:=@CreateNote(dbh1;noteh1);
FH:=@OpenOSFile(TiffFilename;"BR");
Ret:=@GetPictureFileInfo(FH;1);
@LogReport(Ret;3);
Form[noteh1]:="TestForm";
RT[noteh1]:=@RTInit;
RT[noteh1]:=@RTAddPictureFile(FH;1;RT[noteh1]);
FH:=@CloseOSFile(FH);
noteh1:=@CloseNote(noteh1;1);
dbh1:=@CloseDB(dbh1);
The TIFF file with the file name "1P001.TIF" is inserted into the RICHTEXT field named RT.
Note : This text was machine-translated and may contain inaccuracies.
