hi - I'm trying this : Type t = Type.GetTypeFromProgID("esriArcMapUI.MxDocument");
IDocument mxd = Activator.CreateInstance(t) as IDocument;
and I've tried IDocument mxd = New MxDocument()
neither work. I get Retrieving the COM class factory for component with CLSID {006B1AFE-C66C-11D0-B94C-080009EE4E51} failed due to the following error: 80040111.
I've looked through the help and can't find anything that is pertinent to this issue. Any help would be appreciated.Thanks,kyle