Knowledgebase
Graphics - fimg function, OnImageFormat event.
Posted by - NA - on 11 March 2005 10:58 PM
A graphic image may be inserted from a blob, graphic field or from an external graphic file, using function fimg. For example: \fimg(a:field2)\, \fimg(a:field2,1)\.

 

Function format for blobs and graphic fields is: \fimg(FieldName,[FormatIndex])\, where FieldName is the name of the data field. FormatIndex is the number which will be passed into OnImageFormat event. This parameter is 0 by default and is not required. You may use this number in event OnImageFormat when formatting different images in the report.

 

The function format for variables is the same: \fimg(VarName,[FormatIndex])\. The variable VarName must contain a string with the filename to be inserted in the report. For example: if the variable MyPicture='c:\pictures\chart1.bmp', in the report template may be string \fimg(MyPicture)\. String constant is also allowed as argument for fimg format.

 

You may insert graphics through the user defined function.
(31 vote(s))
Helpful
Not helpful

Comments (0)
© AIT Translation Management Solutions, . Awesome Software Tools for Translators and Translation Agencies.
Privacy Policy | Data Processing Agreement