User`s guide
13 Create a Report Program
13-20
Report Formatting Approaches
The DOM API supports three approaches to formatting document objects in reports:
• Style sheets — Assign to a document object (such as a paragraph, table, or list) a
style from a Microsoft Word or HTML template, using the StyleName property of a
document object. A style is a collection of formats.
• Format objects — Use format objects, such as a FontFamily object, with the Style
property of a document object.
• Format properties — Use format properties of a document object. For example, for a
Paragraph object p, you can specify
p.Color = 'red'
Related Examples
• “Use Style Sheets” on page 13-21
• “Use Format Objects” on page 13-23
• “Use Format Properties” on page 13-24
More About
• “Format Inheritance” on page 13-25