X
xiahmi
Hi Ken,
What do you mean?
"If it's plain text or RTF in the Outlook editor you cannot"
I cannot get the selection?
This is the scenario..
The user selects a part of the mail message/body and I should be able to
copy the selected items and store it as pdf.
Outlook.Selection selection = myActiveExplorer.Selection;
if (selection is Outlook.MailItem)
{
Outlook.MailItem mailItem =
(selection as Outlook.MailItem);
mailItem.Copy();
}
I believe that this would copy the entire mail right?
I only need to copy the selected objects..
and what would be the possible solution of converting a mail into pdf?
Thanks
wrote:
> If it's plain text or RTF in the Outlook editor you cannot. For HTML you
> would get the HTML.Document and use the HTML Document object model. For
> WordMail you get the Word.Document and use that object model.
> >
>
>
>
> "DavidH&P" <david-mH&P@H&P.com> wrote in message
> news:4BC7A7E5-FAEE-498C-9F4E-C73F21B620BE@microsoft.com...
> > Hi,
> > I'm using vsto2005SE,
> > I would like to access to the current text selection of the current
> > MailItem
> > selection,
> > How to do that ?
> > thanks,
> > David
>
What do you mean?
"If it's plain text or RTF in the Outlook editor you cannot"
I cannot get the selection?
This is the scenario..
The user selects a part of the mail message/body and I should be able to
copy the selected items and store it as pdf.
Outlook.Selection selection = myActiveExplorer.Selection;
if (selection is Outlook.MailItem)
{
Outlook.MailItem mailItem =
(selection as Outlook.MailItem);
mailItem.Copy();
}
I believe that this would copy the entire mail right?
I only need to copy the selected objects..
and what would be the possible solution of converting a mail into pdf?
Thanks
wrote:
> If it's plain text or RTF in the Outlook editor you cannot. For HTML you
> would get the HTML.Document and use the HTML Document object model. For
> WordMail you get the Word.Document and use that object model.
> >
>
>
>
> "DavidH&P" <david-mH&P@H&P.com> wrote in message
> news:4BC7A7E5-FAEE-498C-9F4E-C73F21B620BE@microsoft.com...
> > Hi,
> > I'm using vsto2005SE,
> > I would like to access to the current text selection of the current
> > MailItem
> > selection,
> > How to do that ?
> > thanks,
> > David
>