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 VBA / May 2006

Tip: Looking for answers? Try searching our database.

How to customize Views programatically?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lucas Campos - 30 May 2006 19:03 GMT
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
Sue Mosher [MVP-Outlook] - 30 May 2006 19:10 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Hi,
> I'm testing an OL based application so I have to manipulate OL as "user
[quoted text clipped - 18 lines]
>
> LucasC
Wolfram Jahn - 30 May 2006 19:43 GMT
> Outlook 2007 provides a full set of view-related objects and properties.

Hey! Good news...

Wolfram
Lucas Campos - 30 May 2006 20:28 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi,
> I'm testing an OL based application so I have to manipulate OL as "user
[quoted text clipped - 18 lines]
>
> LucasC
Sue Mosher [MVP-Outlook] - 30 May 2006 21:02 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Thanks a lot!!
>
[quoted text clipped - 35 lines]
>>
>> LucasC
Lucas Campos - 30 May 2006 21:28 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Thanks a lot!!
>
[quoted text clipped - 41 lines]
>>
>> LucasC
Sue Mosher [MVP-Outlook] - 30 May 2006 22:31 GMT
Do what with automation?

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Is there any way to do it with automation?
> Thanks
[quoted text clipped - 47 lines]
>>>
>>> LucasC
Lucas Campos - 31 May 2006 14:15 GMT
"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?

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Is there any way to do it with automation?
> Thanks
[quoted text clipped - 49 lines]
>>>
>>> LucasC
Sue Mosher [MVP-Outlook] - 31 May 2006 15:48 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> "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
[quoted text clipped - 5 lines]
>
> Do what with automation?

>> Is there any way to do it with automation?
>> Thanks
[quoted text clipped - 49 lines]
>>>>
>>>> LucasC
 
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.