Printing
The ArcGIS Viewer for Silverlight provides several printing options for your Viewer application. For simple, low-resolution printing, you can choose from the built-in layouts: Basic and With Map Elements. Printing this way does not require referencing a service. For high quality printing, you can use the ArcGIS for Server 10.1 Print Service. By default, the ArcGIS Viewer for Silverlight uses the sample Export Web Map Task hosted on ArcGIS Online, but you can configure the Print tool to use your own ArcGIS Server Print Service and a proxy if desired.
Simple map printing
The simple printing option refers to the self-contained print functionality in the ArcGIS Viewer for Silverlight. While simple printing results in relatively low resolution printouts and offers limited print layout options, it does not require referencing a service. If you require high quality printing or additional layout options, you should use the ArcGIS 10.1 Print Service. If this is the case, skip this section and refer to the Configure printing section below.
The print layouts available with the simple print option are as follows:
The Basic print layout includes the following:
- The map's current visible extent
- All copyright and attribution information, shown below the map
- The map's title (if specified in the Print configuration dialog box)
- A description (if specified in the Print configuration dialog box)
The With Map Elements print layout includes the following:
- Everything in the Basic print layout
- An overview map
- Scalebar
ArcGIS Viewer for Silverlight supplies the text's font and the printed map's layout. The map is drawn using the same resolution as shown on the screen and therefore, may not display properly if scaled to a larger map display. The location and scaling of the map cannot be adjusted.
Using the standard Windows printing dialog box, you can choose the following:
- The printer to which to direct output
- The paper size
- Whether to print in landscape or portrait layout
Configure printing
Configure printing by using the Add Tool dialog box:
- Click the Add Tool button on the Tools tab to display the Add Tool dialog box.
- Navigate to the Printing category of the Add Tool dialog box and select Print. Click Next.
- Specify the properties for the Print tool, including the Toolbar, Label, Tooltip, and Icon and click Next.
- If you want to use the ArcGIS Viewer for Silverlight simple map printing, leave the Use ArcGIS Server Print Service checkbox unchecked and specify the Title, Description, Copyright, Width and Height (in pixels), and Layout and click OK to finish. Otherwise, continue to Step 5 below.
- To use the ArcGIS Server Print Service, check the corresponding checkbox and specify the Print Service URL if you wish to use one that is different from the default. If a proxy is required, check the Use Proxy checkbox. If using a proxy, specify the Proxy URL on the Application Settings tab (see Application Builder settings.Note:
You must specify the entire url to the print service task, for example, http://demo1/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task.
- Specify each attribute to use when printing and click OK to finish.
Print the map
Printing is available in both the Application Builder and published Viewer applications. The Print tool is not included by default on the Viewer toolbars. You must add it using the Add Tool dialog box using the steps in the previous section.
- Click the Print button on the toolbar. The Print dialog box appears allowing you to specify the printing parameters.
- Click the Print button. The standard Windows Print dialog box appears.
- Select a printer, make settings and modifications as needed, then click Print.
The map layout is sent to the specified printer.