Tutorial - Lesson 12

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

 

A common reporting need is printed graphic image(s) on a report. Most commonly this is used by businesses for company logos, or for customized letterhead for memos. It is also a nice way of sprucing up drab reports into a more eye-catching design. Report Builder makes it very easy to add graphic image file(s) to your report.

 

Image files are normally placed in the Report Header band, but they can be placed in other Report Bands as desired.

 

After opening the report in the Report Formatter screen, create a new frame in the desired location. Right click on the new frame to display the Frame Properties window. Underneath the Contents entry field is a check box titled Contents - image file name. Check the check box, then click the Dictionary button (looks like a flashlight):

 

RBDetail19

Frame properties with image file selected

 

Because the 'Contents - image file name' is checked, the Dictionary button works like a standard windows file selection box instead of displaying the Dictionary. From the pop up file selection box you can choose the desired graphic image file of these formats:

 

*.Bmp

 

*.Gif

 

*.Jpg

 

*.Pcx

 

*.Wmf

 

If the selected image file does not have the path defined, Report Builder will search for the file in this order:

 

The current folder

 

The folder where your *.Rpt report files are saved (the C:\ComQuest folder on the Fileserver)

 

All directories from the PATH environment variable defined in your Autoexec.Bat file

 

HandSome image file formats lend themselves better for re-sizing than others

 

If possible stick with .Wmf (Windows Meta Files), as they resize the best.

 

After selecting the file its filename will be displayed inside the new frame:

 

RBDetail20

Frame with image file

 

And here is a sample of the new report header:

 

RBReport6

Sample report with logo

 

Remember that you can use the placement buttons to define the placement of the image inside the frame (top / middle / bottom aligned). You can also choose to place a visible frame around the image file (on one or more sides), and optionally change the coloring used in the frame.

 

To recap; in this lesson you learned:

 

That you can use image file(s) in your report

 

How to select an image file to print in a frame

 

That you can draw a frame around the image file