ilanmap

Problem in magnifierwindow - using IDataWindowFactory

Discussion created by ilanmap on May 22, 2012
HI,

i am trying to implement magnifierwindow in arcengine- arcgis desktop application using arcobject /wpf  application using axmapcontrol.
It works fine if i compile the app and runs in ArcMap the tool gets added.
But when am trying to implement in the arcengine- .net3.5 desktop application with the arcmap.ui dll reference.

IDataWindowFactory dataWindowFactory = new MapInsetWindowFactory();

am getting error on runtime ;Retrieving the COM class factory for component with CLSID {2BF3A4DF-AFB7-11D1-8750-0000F8751720} failed due to the following error: 80040154.

i have tried setting the target platfrom x86 only. system env :windows 7 ,64bit.

Code :

  IMapInset imset ;
   IMapInsetWindow ImsetWindow ;
IDataWindowFactory dataWindowFactory = new MapInsetWindowFactory();

if (dataWindowFactory.CanCreate(m_hookHelper.ActiveView))
{
ImsetWindow = (IMapInsetWindow)dataWindowFactory.Create(m_hookHelper.ActiveView);
imset = ImsetWindow.MapInset;
imset.ZoomPercent = 200;
ImsetWindow.Show(true);
}

Outcomes