B
Belikov
Hi!
I am developing AddIn for Outlook 2003 with VSTO SE and VB.NET
It should export Outlook tasks in custom view with any set of columns (including user properties) to Word.
To get sort and filter settings for Current View I am parsing CurrentView.XML. This works ok.
But I also need to know columns of Current View.
The only way I found is to get heading (in my case its localized) and find corresponding property in big select-case expression. It means that if I mistype or user change column name in view it will break my addin. I think that there must be better way to do this with string in prop tag (mapi/id and stuff). But how can I translate it to Task property name?
<column>
<heading>Срок</heading> <prop>http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/81050040</prop>
<type>datetime</type>
<maxrows>183631872</maxrows>
<width>70</width>
<style>padding-left:3px;;text-align:left</style>
<format>M/d/yy</format>
<displayformat>12</displayformat>
<bestfitdate>0</bestfitdate>
</column>
Another problem is format of values. I can see displayformat index, but how can I use it to format values?
I am developing AddIn for Outlook 2003 with VSTO SE and VB.NET
It should export Outlook tasks in custom view with any set of columns (including user properties) to Word.
To get sort and filter settings for Current View I am parsing CurrentView.XML. This works ok.
But I also need to know columns of Current View.
The only way I found is to get heading (in my case its localized) and find corresponding property in big select-case expression. It means that if I mistype or user change column name in view it will break my addin. I think that there must be better way to do this with string in prop tag (mapi/id and stuff). But how can I translate it to Task property name?
<column>
<heading>Срок</heading> <prop>http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/81050040</prop>
<type>datetime</type>
<maxrows>183631872</maxrows>
<width>70</width>
<style>padding-left:3px;;text-align:left</style>
<format>M/d/yy</format>
<displayformat>12</displayformat>
<bestfitdate>0</bestfitdate>
</column>
Another problem is format of values. I can see displayformat index, but how can I use it to format values?