add-in that grabs the export path

Discussion created by shepa006 on Jul 29, 2011
Latest reply on Aug 5, 2011 by Neil
I have been looking for a way to run the export dialog from ArcMap.ThisApplication.Export(); and assign the output path to a variable in the add-in to be used later. I've looked at other export options (such as IExport and ExportFileDialog) but from what I can tell the other options require me to specify what type of output it will be rather than just opening the Export window. Since I don't want to lock my user into a single output type I was hoping someone could tell me how to listen to ArcMap.ThisApplication.Export() and grab the full output path.

I'm fairly new to C# so this might be a basic question and I'm just missing something.