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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Displaying custom properties of a PDF DocumentItem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 11th 09, 12:01 PM posted to microsoft.public.outlook.program_addins
wclarke101
external usenet poster
 
Posts: 5
Default Displaying custom properties of a PDF DocumentItem

I'm using the PropertyAccessor.SetProperty method to set some custom
properties on DocumentItem objects in a MAPIFolder. I'm then displaying
these custom properties as columns in the folder view.

Where the DocumentItem is any MS Office document (Word, Excel, etc), then
the values of the custom properties display correctly in the columns of the
view. However, if the DocumentItem is an Acrobat PDF document, then the
property values are not being displayed at all in the view. Does anyone know
how to resolve this?

I'm using VSTO 2008 with Outlook 2007.

Thanks,
Wayne.
Ads
  #2  
Old September 11th 09, 11:33 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Displaying custom properties of a PDF DocumentItem

What are the relevant snippet of your code?
What do you see on the MAPI level for teh good and bad document items (you
can look at theraw message properties using OutlookSpy - select the item in
Outlook, click IMessage button on the OutlookSpy toolbar).

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"wclarke101" wrote in message
...
I'm using the PropertyAccessor.SetProperty method to set some custom
properties on DocumentItem objects in a MAPIFolder. I'm then displaying
these custom properties as columns in the folder view.

Where the DocumentItem is any MS Office document (Word, Excel, etc), then
the values of the custom properties display correctly in the columns of
the
view. However, if the DocumentItem is an Acrobat PDF document, then the
property values are not being displayed at all in the view. Does anyone
know
how to resolve this?

I'm using VSTO 2008 with Outlook 2007.

Thanks,
Wayne.



  #3  
Old September 14th 09, 09:51 AM posted to microsoft.public.outlook.program_addins
wclarke101
external usenet poster
 
Posts: 5
Default Displaying custom properties of a PDF DocumentItem

Here is the code I use to set the properties...

setProperty(objDocItem, "User", strUser)
setProperty(objDocItem, "Description", strDocumentName)

Here is the "setProperty" function being called above...

Sub setProperty(ByRef objDocumentItem As Outlook.DocumentItem, ByVal
strPropertyName As String, ByVal strPropertyValue As String)
Try
objDocumentItem.PropertyAccessor.SetProperty(SCHEM A_NAME &
strPropertyName, strPropertyValue)
Catch ex As Exception
LogError("setProperty(Outlook.DocumentItem, '" & strPropertyName
& "', '" & strPropertyValue & "') - Exception : " & ex.Message)
End Try
End Sub

And here is the View XML snippet for the two columns...

column
headingUser/heading
prophttp://schemas.microsoft.com/mapi/string/{FFF40745-D92F-4C11-9E14-92701F001EB3}/User/prop
typestring/type
width61/width
stylepadding-left:3px;;text-align:left/style
editable1/editable
/column
column
typestring/type
headingDescription/heading
prophttp://schemas.microsoft.com/mapi/string/{FFF40745-D92F-4C11-9E14-92701F001EB3}/Description/prop
width200/width
stylepadding-left:3px;;text-align:left/style
editable1/editable
/column

No error is logged by the "setProperty" function. I can see the properties
have been set correctly when I use the IMessage feature of OutlookSpy, but
the values are not displaying in the columns of the view if the document is a
PDF.

Thanks,
Wayne.

"Dmitry Streblechenko" wrote:

What are the relevant snippet of your code?
What do you see on the MAPI level for teh good and bad document items (you
can look at theraw message properties using OutlookSpy - select the item in
Outlook, click IMessage button on the OutlookSpy toolbar).

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"wclarke101" wrote in message
...
I'm using the PropertyAccessor.SetProperty method to set some custom
properties on DocumentItem objects in a MAPIFolder. I'm then displaying
these custom properties as columns in the folder view.

Where the DocumentItem is any MS Office document (Word, Excel, etc), then
the values of the custom properties display correctly in the columns of
the
view. However, if the DocumentItem is an Acrobat PDF document, then the
property values are not being displayed at all in the view. Does anyone
know
how to resolve this?

I'm using VSTO 2008 with Outlook 2007.

Thanks,
Wayne.




  #4  
Old September 14th 09, 05:54 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Displaying custom properties of a PDF DocumentItem

When you select the property in the IMessage window in OutlookSpy, do you
see the right GUID matching that used in the view descriptor?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"wclarke101" wrote in message
...
Here is the code I use to set the properties...

setProperty(objDocItem, "User", strUser)
setProperty(objDocItem, "Description", strDocumentName)

Here is the "setProperty" function being called above...

Sub setProperty(ByRef objDocumentItem As Outlook.DocumentItem, ByVal
strPropertyName As String, ByVal strPropertyValue As String)
Try
objDocumentItem.PropertyAccessor.SetProperty(SCHEM A_NAME &
strPropertyName, strPropertyValue)
Catch ex As Exception
LogError("setProperty(Outlook.DocumentItem, '" &
strPropertyName
& "', '" & strPropertyValue & "') - Exception : " & ex.Message)
End Try
End Sub

And here is the View XML snippet for the two columns...

column
headingUser/heading
prophttp://schemas.microsoft.com/mapi/string/{FFF40745-D92F-4C11-9E14-92701F001EB3}/User/prop
typestring/type
width61/width
stylepadding-left:3px;;text-align:left/style
editable1/editable
/column
column
typestring/type
headingDescription/heading
prophttp://schemas.microsoft.com/mapi/string/{FFF40745-D92F-4C11-9E14-92701F001EB3}/Description/prop
width200/width
stylepadding-left:3px;;text-align:left/style
editable1/editable
/column

No error is logged by the "setProperty" function. I can see the
properties
have been set correctly when I use the IMessage feature of OutlookSpy, but
the values are not displaying in the columns of the view if the document
is a
PDF.

Thanks,
Wayne.

"Dmitry Streblechenko" wrote:

What are the relevant snippet of your code?
What do you see on the MAPI level for teh good and bad document items
(you
can look at theraw message properties using OutlookSpy - select the item
in
Outlook, click IMessage button on the OutlookSpy toolbar).

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"wclarke101" wrote in message
...
I'm using the PropertyAccessor.SetProperty method to set some custom
properties on DocumentItem objects in a MAPIFolder. I'm then
displaying
these custom properties as columns in the folder view.

Where the DocumentItem is any MS Office document (Word, Excel, etc),
then
the values of the custom properties display correctly in the columns of
the
view. However, if the DocumentItem is an Acrobat PDF document, then
the
property values are not being displayed at all in the view. Does
anyone
know
how to resolve this?

I'm using VSTO 2008 with Outlook 2007.

Thanks,
Wayne.






 




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
Outlook custom properties Mcafe Outlook and VBA 0 May 29th 09 01:47 AM
Updating Properties on Custom Button from another Custom ButtonsonAction Event [email protected] Add-ins for Outlook 0 May 30th 08 04:30 AM
editing DocumentItem properties Andreas[_2_] Outlook and VBA 4 April 30th 08 02:09 PM
MSG Custom properties on right click custom tab [email protected] Add-ins for Outlook 1 February 1st 06 06:00 PM
MSG Custom properties on right click custom tab Steph Outlook and VBA 1 February 1st 06 05:55 PM


All times are GMT +1. The time now is 08:05 PM.


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