PC Review


Reply
Thread Tools Rate Thread

a table border is missing after the email is received

 
 
JD
Guest
Posts: n/a
 
      14th Sep 2012
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:lFormatRichText);

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

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
page border problems bottom border missing mikeeeee Microsoft Word Document Management 0 12th Oct 2009 09:31 AM
How do I get all received email messages to show once received? =?Utf-8?B?VGlncndvbW4=?= Microsoft Outlook Discussion 2 31st Jul 2007 06:44 AM
the email received icon doesnt appear when an email is received =?Utf-8?B?Tmlzc2Fu?= Microsoft Outlook Discussion 2 15th Nov 2005 12:30 AM
Body of page appears in Top Border, Left Border and Bottom Border (there is no right border) Michael Edwards Microsoft Frontpage 1 14th Oct 2004 09:46 AM
Re: Want black vertical border to show up over gray horizontal border CLR Microsoft Excel Misc 0 15th Jul 2004 07:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:09 AM.