Publish a map


PurposeThis sample demonstrates how to publish a map using default parameters with the current map document that is loaded in ArcMap.

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, open the solution file, and build the project.
  2. Start ArcMap and add an existing map.
  3. Click Customize, then click Customize Mode.
  4. Click the Commands tab and select the Add-in Controls category.
  5. Click and drag Publish a PMF Map from the Commands list onto a toolbar.
  6. Click the Publish a PMF Map add-in command to publish the Published Map File (PMF) map to C:\PublishMap.pmf.

PublishMap.vb The code to create the add-in to publish the map.
Download the VB.NET files
PublishMap.cs The code to create the add-in to publish the map.
Download the C# files

Download the files for all languages




Development licensing Deployment licensing
ArcView: Publisher ArcView: Publisher
ArcEditor: Publisher ArcEditor: Publisher
ArcInfo: Publisher ArcInfo: Publisher