how to add text to word document

R

Ram

Hi,
i have to add a text a document ,which comes in outlook as default word
editor. For this i am doing the following code.
m_hr=m_inspect->get_WordEditor((IDispatch**)&m_wordApplication);


if(SUCCEEDED(m_hr))

MessageBox(NULL,_T("Word editor captured"),NULL,0);

m_wordApplication->get_ActiveDocument(&m_worDoc);

m_worDoc->get_Name(&m_b);

CString m_s=CString(m_b);




MessageBox(NULL,m_s,NULL,0);



but i am not getting any result.



how can i add text to word document. i am using vc++6.0




--
Regards,

RamakoteswaraRao Koti
Software Engineer,
Nannacomputers Pvt Ltd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top