Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Export Attributes to CSV/Excel



contact author | download help | add bookmark | view bookmarks
Author Ariz Naqvi
File Name ExportAttributes.zip
Language C#
Last Modified Feb 25 2007
Status of work Public Domain
Software ArcGIS Server
File Size 4.74 kb
Downloads 1439

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
This sample ArcGIS Server web application includes a simple functionality to export feature attributes as a CSV file that can be opened with Excel.

User can select a layer whose attributes are to be exported. All attributes (subject to a max) for layer features in the current map extent will be exported. If the selected layer is not visible, the map scale will be changed to the nearest visible scale(min or max).

The MaxRecords returned are set to 1000. The MaxRecords property can be changed in the script. However, if the ArcGIS map service configuration file has a lower MaxRecords limit then that will be take precedence.

Also, a large number of attribute information will take longer to generate.

Before using the application, configure the ArcGIS Identity & set the MapResourceItem for the MapResource Manager.