a table border is missing after the email is received

J

JD

Hi,

I programmatically create an outlook email item, copy a table from a Words document, paste to the embedded word editor in the email item, and then send the item. The email on the receiver side has the table border missing, while the sender side looks perfectly fine. Can anybody think of any reasonwhy this happen? Any hint is much appreciated.

JD

ps. here is a code snippet for your reference,

if (!_objOutlookApp)
return false;

CComPtr<Outlook::_MailItem> olMail;
if (!GetMailItem(olMail))
return false;

olMail->PutBodyFormat(Outlook::eek:lFormatRichText);

CComPtr<Outlook::_Inspector> insp = olMail->GetGetInspector();
if (insp == NULL)
return false;

insp->Activate();
enum Outlook::OlEditorType nType = insp->GetEditorType();
if (nType != Outlook::eek:lEditorWord)
return false;

CComPtr<IDispatch> pDisp = insp->GetWordEditor();
if (!pDisp)
return false;

CComQIPtr<Word::_Document> pWordDoc(pDisp);
CComPtr<Word::_Application> pWordApp;
pWordDoc->get_Application(&pWordApp);

if (!pWordDoc || !pWordApp)
return false;

CMSWordProcessor wordDoc;
if (!wordDoc.AttachWordDoc(pWordDoc, pWordApp))
return false;

wordDoc.PasteFromClipboard();

olMail->PutTo(sTo.AllocSysString());
olMail->PutSubject(sSubject.AllocSysString());
olMail->Send();

wordDoc.DetachWordDoc();
 

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