Kbase 21476: RB. How To Print an Image Catalog with Report Builder
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/12/2003 |
|
Status: Unverified
GOAL:
How to create an image catalog using the supported formats by Report Builder, where to locate the image files, and how to link the catalog to the record.
FACT(s) (Environment):
Progress 8.X
Progress 9.X
Report Builder
CAUSE:
There are several cases where you want to display a catalog of items with pictures. In order to do so, it is necessary to link a unique character field with the name of the image file. The content of this character field must be the name of the image file itself.
FIX:
For example purposes we will use the JPEG format.
If, in the sports data base, we add a field named image and we assign it a value like this:
FOR EACH CUSTOMER:
ASSIGN IMAGE = "C" + STRING(CUST-NUM, "9999") + ".jpg".
We can now point, for the customer #1, to the C0001.jpg file, customer #2 to the C0002.jpg and so on.
Now we need a specific directory where these images are going to be stored. By default, Report Builder will use the work directory defined in the Windows shortcut for that program. To modify this directory you need to go to the "options" menu within Report Builder, "default directories" and change the image directory.
Another way to do this is by changing the "ImgDir" entry in the Windows registry or the Progress.INI file.
To make this image catalog work, you must add an image into the Report Builder's record band and click the radio button in the "From field:" selection list. For this example we would select the field "Image".
Make the arrangements in the band size to fit the image and run a Preview.
References to Written Documentation:
Progress Report Builder User's Guide