ilanmap

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

Discussion created by ilanmap on Nov 15, 2011
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

Attachments

Outcomes