private void Form1_Load(object sender, EventArgs e)
{
string FilePath;
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Title = "請打開地圖檔案";
openFileDialog1.Filter = "Map Documents(*.mxd)|*.mxd";
openFileDialog1.ShowDialog();
FilePath = openFileDialog1.FileName;
if (axMapControl1.CheckMxFile(FilePath) == true)
{
axMapControl1.LoadMxFile(FilePath);
}
else
{
MessageBox.Show("選擇有誤");
}
}
“System.Reflection.TargetInvocationException”型別的未經處理的例外在 mscorlib.dll 中發生
其他資訊: 呼叫的目標發生了例外。
uj5u.com熱心網友回復:

會這樣報錯
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/19907.html
標籤:地理信息系統
