Add graphics to a paginated report

You can add graphics that fit easily within one page into paginated reports. For example, you can add:

  • condition assessment photos
  • equipment, furniture, and room standards in Standards Books
  • photos in service requests and work requests
  • photos in employee lists and contact lists
  • building and property photos in Building, Property,and Lease Abstracts.

You cannot add graphics that take up a full page or multiple pages.

By default, showGraphics is true. If you don't want to display images, you add the showGraphics="false" attribute in the paginated report axvw file.

<report
documentTemplate= "report-letter-portrait.docx"
orientation= "portrait"
showGraphics= "true"
showBarCodes= "true"
/>

In each group band, the paginated report will list all fields of data as usual. It will list any visible memo fields beneath the data. Beneath the memo fields the program inserts any graphics.

The program inserts a graphic for any field that:

  • is of Archibus Type Document
  • has a document uploaded in that field
  • has a .jpg, .gif, or .png extension

If a field for a particular record has no document, or if there is no .jpg, .gif, or .png file in that field; then do not place any graphic frame. It is not an error to have a blank document field, or to have a document that is not a graphic.

Specifying the Width and Height for All Graphics

The \web-inf\config\reports\docx\report.xml has parameters to specify the width and height to use for all graphics:

// Specify in Inches. Program multiplies by 2.54 for
// A3 and A4 reports.
<property name="graphicFrameHeight" value="3.0" />
<property name="graphicFrameWidth" value="5.0" />

The program extracts the Document from the Archibus Type Document field by using a file stream. The program then writes the .jpg, .gif, or .png to the Word document output directly from that data stream.