Select to view content in your preferred language

Problem loading map files mxd, or .lyr file in axcontrol arcobject in WPF

1852
0
11-15-2011 02:17 AM
ilankumaranm
Emerging Contributor
hi
              hosted in windowsformintegration
               mapHost.Child = axMapControl1;
                axMapControl1.LoadMxFile(sFilePath);
and while loading .lyr type axMapControl1.addfromlayer(filepath)
1.i created a map using arcmap .mxd and lyr type using ARCGIS.saved and able to open in arcmap.
2.But when i tried to open in the application using the axmapcontrol , i am not able to view the map loaded. app compiles and goes without error. am i doing wron in creating the map? what needs to be done please. attached sample file
0 Kudos
0 Replies