HOW TO
Instructions provided describe the proceedure to use to hide the legend while printing a map generated by the HTML Viewer. Editing one of the javascript files in the HTML Viewer web site allows the option.
Code:
// create web page for printing
// first get Map
function getPrintMap(title) {
...
if (aimsLegendPresent) legendVisible=false;
...
}
Code:
// fourth, write the web page
function writePrintPage() {
...
//Win1.document.writeln(' <TD ALIGN="CENTER" VALIGN="TOP">');
//Win1.document.writeln(' <IMG SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="">');
//Win1.document.writeln(' </TD>');
...
}
Note:
The aimsPrint.js file can be edited further to customize the print page of the map.
Article ID:000006644
Get help from ArcGIS experts
Download the Esri Support App