User`s guide

Create and Format Images
13-77
close(d);
rptview(d.OutputPath);
For a list of supported image formats, see mlreportgen.dom.Image.
Resize an Image
To resize an image object, you can:
Set the Image.Height and Image.Width properties.
Use an mlreportgen.dom.Height or mlreportgen.dom.Width object in an
Image.Style property definition.
For Microsoft Word reports, you can use an mlreportgen.dom.ScaleToFit object to
scale an image so that it fits within the page margins.
Image Storage
Keep the original file until it has been copied into the document. The DOM API copies
the contents of the source image file into the output document either when you append
the Image object to the document (if you set the Document.StreamOutput property to
true) or when you close the document.
Links from an Image
You can specify an area in an image to be a link. Clicking a link area in an image in an
HTML browser opens the link. For details, see “Create Image Maps” on page 13-85.
See Also
mlreportgen.dom.Height | mlreportgen.dom.Image |
mlreportgen.dom.ScaleToFit | mlreportgen.dom.Width
Related Examples
“Add Content to a Report” on page 13-11
More About
“Report Formatting Approaches” on page 13-20