Dear Vincent,
I have tried your suggestion in following ways, but neither of it works. When tried to cast its always null.
1. Here mapDoc is always null.
IMapDocument mapDoc = ((IMxDocument)m_application.Document).FocusMap as IMapDocument;
2. Here also, mapDoc is always null.
IMapDocument mapDoc = m_application.Document as IMapDocument;
Please suggest some sample.
Thank you.
Regards
Muzammil