This document is archived and information here might be outdated.  Recommended version.


IARControlDefault.PrintView Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARControlDefault.PrintView Method

Send the current map or page layout view to the printer.

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Sends the CurrentView to either the system default printer or the last printer selected in either the esriARWindowsPageSetup or esriARWindowsPrinter window.

Errors Returned

2003 800A07D3: No document loaded

2039 800A07F7: No printer for print operation 

2109 800A083D: The current document does not have permission to print 

Remarks

The PrintView method will return an error if the currently loaded document was not published with permission to Print. Use the IARControlDefault::HasDocumentPermission method to determine this.

See Also

IARControlDefault Interface