![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello,
I need to costumize the view where the messages (in the Inbox, for example) are listed (between the Folder tree and the Reading Pane). If, for instance, what I see there now is the Subject of each mail and the Sender Display name, and I want to replace the sender display name with his/her email address. Is there a way to do that programmatically? Can I treat the whole thing as a Form Region and replace it with my own? I've looked through all the Outlook2007 artices I could find but reached nothing.. Thanks! |
Ads |
#2
|
|||
|
|||
![]()
If you add a new View object to the Folder.Views collection as a TableView
object you can then cast the returned View object to a TableView. You can then use the methods of the TableView object to add your field and remove others. You can also directly access the XML for the Folder view and use that to customize the View. Unless you're familiar with the required XML you probably are better off using the new TableView object if you're only supporting Outlook 2007. Look in the Help for TableView for more information and links to information on setting the TableView properties. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "yaya" wrote in message ... Hello, I need to costumize the view where the messages (in the Inbox, for example) are listed (between the Folder tree and the Reading Pane). If, for instance, what I see there now is the Subject of each mail and the Sender Display name, and I want to replace the sender display name with his/her email address. Is there a way to do that programmatically? Can I treat the whole thing as a Form Region and replace it with my own? I've looked through all the Outlook2007 artices I could find but reached nothing.. Thanks! |
#3
|
|||
|
|||
![]()
Thanks,
but how do I get the current outlook tableView? I want to replace the current message explorer with my own. "Ken Slovak - [MVP - Outlook]" wrote: If you add a new View object to the Folder.Views collection as a TableView object you can then cast the returned View object to a TableView. You can then use the methods of the TableView object to add your field and remove others. You can also directly access the XML for the Folder view and use that to customize the View. Unless you're familiar with the required XML you probably are better off using the new TableView object if you're only supporting Outlook 2007. Look in the Help for TableView for more information and links to information on setting the TableView properties. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "yaya" wrote in message ... Hello, I need to costumize the view where the messages (in the Inbox, for example) are listed (between the Folder tree and the Reading Pane). If, for instance, what I see there now is the Subject of each mail and the Sender Display name, and I want to replace the sender display name with his/her email address. Is there a way to do that programmatically? Can I treat the whole thing as a Form Region and replace it with my own? I've looked through all the Outlook2007 artices I could find but reached nothing.. Thanks! |
#4
|
|||
|
|||
![]()
You can't replace an Explorer with your own. You can replace the current
view for a folder in an Explorer view with a custom view. If you use code to add a new View to the Views collection of a folder you can add that view as a table view. You then set the XML or view properties to what you want. Dim oFolder As Outlook.Folder Dim colViews As Outlook.Views Dim oView As Outlook.TableView Set oFolder = oApp.ActiveExplorer.CurrentFolder Set colViews = oFolder.Views Set oView = colViews.Add("MyView", olViewType.olTableView, olViewSaveOption.olViewSaveOptionAllFoldersOfType) That line creates a new table view and when saved it will be usable for all folders of that type. You can use other save options. Once you have that TableView object you can use the properties of the TableView to set all your view's properties and formatting. Look in the Object Browser Help to get information about each property you can use to set up your custom view. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Alex" wrote in message ... Thanks, but how do I get the current outlook tableView? I want to replace the current message explorer with my own. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OUTLOOK2007 | Greg Maxey | Outlook - General Queries | 10 | December 21st 06 02:20 AM |
Outlook2007 folder URL problem | T-rev | Add-ins for Outlook | 1 | September 19th 06 01:39 PM |
Hyperlinks in emails open a folder window, not Internet Explorer | Jerom | Outlook Express | 3 | August 6th 06 05:20 PM |
Email hyperlinks open Windows Explorer, not Internet Explorer | M Skabialka | Outlook - General Queries | 2 | July 7th 06 09:39 PM |
Drag msg to explorer folder - change name? | ben ik | Outlook - General Queries | 1 | April 12th 06 11:20 PM |