After a lots of research and trials found a way to implement this.
Used a new View called CMyHtmlView which was inherited from the CHtmlView for my old Document.
class CReportWebView : public CHtmlView
{
protected: // create from serialization only
CReportWebView();
int m_reportID;
DECLARE_DYNCREATE(CReportWebView)
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CReportWebView)
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual void OnFilePrintPreview();
virtual void OnFilePrint();
virtual void OnNavigateComplete2(LPCTSTR strURL);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CReportWebView();
//{{AFX_MSG(CReportWebView)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
More details can be found in my other question