Print active view


PurposeThis sample shows how to print the active view using the IPrintAndExport interface.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio and open the solution file.
  2. Click the Build menu and click Build Solution to compile and register the project.
  3. Start ArcMap and open an ArcMap document.
  4. Click the Customize menu and click Customize Mode. The Customize dialog box opens.
  5. Click the Commands tab and select the Developer Samples category.
  6. Drag and drop the tool icon onto an active toolbar.
  7. Click Close on the Customize dialog box.
  8. Click the tool to print the active view.

PrintActiveViewCS_Net_Addin.cs Source code for PrintActiveView.
Download the C# files
PrintActiveViewVB_Net_Addin.vb Source code for PrintActiveView.
Download the VB.NET files

Download the files for all languages

See Also:

Output




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced
Engine Developer Kit Engine