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


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

IARControl.CopyViewToClipboard Method

Copies the current map or page layout view to the clipboard.

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Copies a bitmap of the CurrentView to the system clipboard so that it can be copied into other applications. The output will exactly reflect the state of the CurrentView as seen on the screen.

Errors Returned

2003 800A07D3: No document loaded

2106 800A083A: The current document does not have permission to copy to clipboard 

Remarks

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

See Also

IARControl Interface