How to customize Views programatically?

  • Thread starter Thread starter Lucas Campos
  • Start date Start date
L

Lucas Campos

Hi,
I'm testing an OL based application so I have to manipulate OL as "user
like" as possible. I'm focused on the Mail Grid (A Supergrid control). I
tried to do it with a testing tool but the problem is that the supergrid
seems to be an Owner Draw control so, there seems to be no way to identify
any controls but the grid itself.
Is there any additional way to use it but OL Automation?

I need to be able to work over the grid itself (sorting, filtering,
grouping, etc). Can those actions be made by OL Automation? Is it possible
to simulate Drag and Drop operations?
How can I configure the Grid (columns to show for example)? I saw that a
View has an XML property with this information. Is there any Object that
represent this XML or it is supposed me to modify the XML directly?

Any other way to do that will be welcome (I tried With MSAA "Microsoft
Active Accessibility" but it didn't offer me additional options to
manipulate the Grid)

Thanks a lot

LucasC
 
In Outlook 2002 and 2003, you must modify the XML directly. MSDN has articles at http://msdn.microsoft.com/library/en-us/dnout2k2/html/ODC_CustomViews.aspand http://msdn.microsoft.com/library/en-us/dnout2k2/html/ODC_XMLViewDef.asp See http://www.outlookcode.com/threads.aspx?forumid=4&messageid=19 for additional sample code.

Outlook 2007 provides a full set of view-related objects and properties.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks a lot!!

Have yu got any idea about how to simulate user actions over the grid (like
Drag and Drop operations). Is there any interface we can use to test it
more close to the user actions than Outlook Automation.

LucasC



In Outlook 2002 and 2003, you must modify the XML directly. MSDN has
articles at
http://msdn.microsoft.com/library/en-us/dnout2k2/html/ODC_CustomViews.asp
and http://msdn.microsoft.com/library/en-us/dnout2k2/html/ODC_XMLViewDef.asp
See http://www.outlookcode.com/threads.aspx?forumid=4&messageid=19 for
additional sample code.

Outlook 2007 provides a full set of view-related objects and properties.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
No idea whatsoever. The only drag-and-drop operaton that's significant in an Outlook folder view is moving items between groups in a grouped view.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Is there any way to do it with automation?
Thanks

No idea whatsoever. The only drag-and-drop operaton that's significant in an
Outlook folder view is moving items between groups in a grouped view.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Do what with automation?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
"The only drag-and-drop operaton that's significant in an Outlook folder
view is moving items between groups in a grouped view." Can it be donde with
Automation?

Thanks a lot

LucasC

Do what with automation?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
You mean simulate the moving of an item from one group to another? Sure. Just change the value of the property that's used for the grouping and then save the item.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top