This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void saveMap() | |
{ | |
IMapDocument mapDocument = new MapDocumentClass(); | |
mapDocument.Open("C:\\temp\\Teste.mxd", string.Empty); | |
//if (mapDocument.get_IsReadOnly(@"[path to your .mxd]")) | |
//{ | |
// System.Windows.Forms.MessageBox.Show("Map document \"" + @"[path to your .mxd]" + "\" is read only!"); | |
// mapDocument.Close(); | |
// return; | |
//} |