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


IARControl.PrintView Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARControl Interface > IARControl.PrintView Method
ArcGIS Developer Help

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