[ReportWorkshop][Unit] Image file names in fields
Posted: Sat May 12, 2018 4:59 pm
Question:
This is not a standard functionality, but it can be implemented with a very simple add-on.
Report Workshop implements standard field types, such as 'int', 'image', 'time', etc.
The attached unit implements 'imagefromfile' field type: Include it in your project.
Let you have a field named FIELDNAME containing file names of images.
Use this syntax to insert these images in your report:
You can use format strings, the same as for normal images, for example:
Answer:In my database, instead of saving the image, I saved the image path.
How can I make Report Workshop display the image for the path?
This is not a standard functionality, but it can be implemented with a very simple add-on.
Report Workshop implements standard field types, such as 'int', 'image', 'time', etc.
The attached unit implements 'imagefromfile' field type: Include it in your project.
Let you have a field named FIELDNAME containing file names of images.
Use this syntax to insert these images in your report:
Code: Select all
{FIELDNAME imagefromfile}
Code: Select all
{FIELDNAME imagefromfile "width=100"}