HTML Export Options

When you export to HTML, Report Commander by default creates a single HTML file containing the entire report. Use the -separate option to generate a separate HTML file for each page of the report. When using this option you will probably want the -navbar option as well, which includes a simple navigation bar at the bottom of each page.

Any graphics contained in the report will be exported as image files, saved in a subdirectory below the directory where the HTML pages are placed. Use the -flattenhtml option to place the images in the same directory as the HTML files.

When you upload or e-mail the exported report, Report Commander includes all of the pages and image files.

HTML E-Mail

If you are exporting your report to HTML and then sending the output by e-mail, you can use the HTML output as the body of the e-mail message, rather than including it as an attachment. The following command line illustrates this:

adcrutil -report="C:\reports\myreport.rpt" -exportformat=html -exportfile="c:\temp\output.htm" -removefile -emserver=127.0.0.1 -emsender="[email protected]" -emrecipient="[email protected]" -emsubject="Today's sales results" -emtext="@"

HTML Formatting Options

When you export to HTML, the following additional command-line options are valid:

Option Description
-navbar When exporting to HTML, include a navigation bar on each page of the output.
-separate When exporting to HTML, generates a separate HTML file for each page of the report.
-flattenhtml When exporting to HTML, "flattens" the directory structure so that images are in the same directory as the HTML files, rather than a subdirectory.
-firstpage=pagenumber The first page of the page range to export.
-lastpage=pagenumber The last page of the page range to export.

Related Concepts

Export Formats and Options

Related Topics

HTML Export Options (Command Line Builder)

HTML Export Settings (Project Editor)