A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Customizing Folder Explorer in outlook2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 15th 07, 02:33 PM posted to microsoft.public.outlook.program_forms
yaya
external usenet poster
 
Posts: 1
Default Customizing Folder Explorer in outlook2007

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  
Old January 15th 07, 03:35 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customizing Folder Explorer in outlook2007

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  
Old January 16th 07, 08:11 AM posted to microsoft.public.outlook.program_forms
Alex
external usenet poster
 
Posts: 90
Default Customizing Folder Explorer in outlook2007

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  
Old January 16th 07, 03:18 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Customizing Folder Explorer in outlook2007

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
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.