Hello!
I have an extension for ArcMap 10.2. The extension implements IPersistVariant interface. I need to call this extension's class methods directly from my code.
I called the startup method passing IApplication as a parameter.
I got IApplication like this:
var doc = new MxDocumnet();
var app = doc.Parent;
Next I need to call the Load method by passing IVariantStream.
How do I get IVariantStream from a mxd file?