Adding a Logo to Your Output

Once you start customizing your style template, a common thing to want to do is add a company logo to your page headings. This is a great way to add your corporate identity to any results you send out. This example shows how to add a logo, and then demonstrates the technique for HTML, RTF, and Printer output.

The first step is to define a new style template based on an existing default template and identify the style element and its attribute that can insert an image into the output. In Styles.Default, the style element that can insert an image is Body, and the attribute to name an image file to be used is PREIMAGE=. For HTML output, these images must be in a browser-compatible format such as GIF, PNG, or JPEG. For ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.