WinVask -  Faktura

Basics: Step 13 (Adding Graphics)

Basics: Step 13 (Adding Graphics)

Previous topic Next topic  

Basics: Step 13 (Adding Graphics)

Previous topic Next 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. The 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 you can placed in other Report Bands as needed.


After opening the report into 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 checkbox titled 'Contents - image file name'. Go ahead and check the checkbox, then click the Dictionary button (the icon that looks like a flashlight):




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 popup 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 the Report Writer will search for the file in this order:


ð        The current folder
ð        The folder where your *.Rpt report files are saved
ð        All directories from the PATH environment variable defined in your Autoexec.Bat file


Some image file formats lend themselves better for resizing than others; if possible stick with .Wmf (Windows Meta Files), as they resize the best. After selecting the file it's filename will be displayed inside the new frame:




Go ahead and save the report, and then run it to see the result:




 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, on this page 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


Next Tutorial Page