a table border is missing after the email is received

  • Thread starter Thread starter JD
  • Start date Start date
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::olFormatRichText);

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

insp->Activate();
enum Outlook::OlEditorType nType = insp->GetEditorType();
if (nType != Outlook::olEditorWord)
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();
 
Back
Top