Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / May 2008

Tip: Looking for answers? Try searching our database.

Reading content of reading pane

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vidishasharma@gmail.com - 14 May 2008 11:58 GMT
Hi,

After my inbox is opened up. I can preview my mails in reading Pane.
How can I read the contents of the items in the reading pane.

Any help is appreciated.
Ken Slovak - [MVP - Outlook] - 14 May 2008 14:24 GMT
There would be only 1 item showing in the reading pane, just use the
Selection collection of the Inbox folder's Items collection. Only 1 item
should be selected.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> Hi,
>
> After my inbox is opened up. I can preview my mails in reading Pane.
> How can I read the contents of the items in the reading pane.
>
> Any help is appreciated.
vidishasharma@gmail.com - 14 May 2008 14:29 GMT
Hi Ken

Thanks for replying

My next question is as follows

If I select some text in reading pane how do I get that.

After I get that text I want to attach a context menu to this
selected
text

How can I do that. Please guide me on this.
Ken Slovak - [MVP - Outlook] - 14 May 2008 14:47 GMT
I'm not sure it would work, and things would depend on what format the
message was in, but if it's an HTML message you can get HTMLBody and then
work with the HTMLDocument object to try to find the selection. Word
wouldn't help since the item wouldn't be displayed using WordMail.

Redemption (www.dimastr.com/redemption) might help if you get the item and
use GetInspector to get an Inspector object for it and then get a
Redemption.SafeInspector for the Inspector. Then you might be able to use
the SafeInspector.SelText property to return the selected text.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> Hi Ken
>
[quoted text clipped - 9 lines]
>
> How can I do that. Please guide me on this.
vidishasharma@gmail.com - 15 May 2008 05:31 GMT
Do I have to follow the same approach If there is a hyperlink in the
reading pane or new inspector window and I have to show a context menu
when I right click on the hyperlink.
Ken Slovak - [MVP - Outlook] - 15 May 2008 13:51 GMT
You'd have to detect that you're over a hyperlink somehow and trap the mouse
right-click.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> Do I have to follow the same approach If there is a hyperlink in the
> reading pane or new inspector window and I have to show a context menu
> when I right click on the hyperlink.
vidishasharma@gmail.com - 15 May 2008 14:27 GMT
Is that possible using normal outlook API or again I have to use win32
api to achieve this.
Ken Slovak - [MVP - Outlook] - 16 May 2008 14:24 GMT
You'd need to use Win32 API calls. There is nothing in the object model to
help at all with what you're trying to do.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> Is that possible using normal outlook API or again I have to use win32
> api to achieve this.
vidishasharma@gmail.com - 14 May 2008 14:26 GMT
Solution to this was simple
Ol.MailItem mailItem = (Ol.MailItem)myExplorer.Selection[1];

However my next problem is :

If I select some text in reading pane how do I get that.

After I get that text I want to attach a contect menu to this selected
text

How can I do that.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.