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


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

IARControl.PrintView Method

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

[Visual Basic .NET]
Public Sub PrintView ( _
)
[C#]
public void PrintView (
);

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 IARControl::HasDocumentPermission method to determine this.

See Also

IARControl Interface