标签:document pdo 添加 ima focus 如何 res string sage
1,第一种方法 MapControl 直接添加
if (!axMapControl1.CheckMxFile(FileName))
{
MessageBox.Show("文件不合法");
return;
}
else
{
axMapControl1.LoadMxFile(FileName);
}
第二种方法:通过MapDocument 进行添加
string FileName = open.FileName;
IMapDocument mapDoc = new MapDocument();
mapDoc.Open(FileName, "");
axMapControl1.Map = mapDoc.ActiveView.FocusMap;
axMapControl1.ActiveView.Refresh();
标签:document pdo 添加 ima focus 如何 res string sage
原文地址:http://www.cnblogs.com/huchaoheng/p/6680853.html