Skip to content

Instantly share code, notes, and snippets.

View helderdek's full-sized avatar

Helder Alves helderdek

  • São José dos Campos - SP, Brasil
View GitHub Profile
@helderdek
helderdek / SaveMap.cs
Created September 3, 2019 14:09
Transformando um AxMapControl em arquivo .MXD
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;
//}