WordMail Message Subject

M

Mark Wilson

I'm developing a Word COM Addin in C++ and I need to be able to read and
write the message subject. I'm testing with Office 2003 and when I execute
the code below I get a return value of E_NOTIMPL on the call to "Mailer"

//--------------------------------------------
HRESULT hr;
LPDISPATCH pDoc;
VARIANT vtMailer; VariantInit(&vtMailer);
VARIANT vtSubject; VariantInit(&vtSubject);

hr = GetProperty(pDoc, L"Mailer", &vtMailer);
if (!FAILED(hr))
hr = GetProperty(vtMailer.pdispVal, L"Subject", &vtSubject);
//--------------------------------------------

What is the preferred method of modifying a message subject from a Word COM
Addin?
 
P

Peter Huang [MSFT]

Hi

I reviewed the thread and find that there is a similar issue in the
newsgroup below. We will replied to you in that thread, you may go and take
a look.
Subject: WordMail Message Subject
Newsgroups: microsoft.public.office.developer.com.add_ins


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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