Exclude UserProperties from print

Add-in Express™ Support Service
That's what is more important than anything else

Exclude UserProperties from print
Exclude UserProperties from print 
Todd Carlson




Posts: 29
Joined: 2006-05-07
We have an add-in that uses UserProperties for storing additional data about outlook items. Everything appears to be working correctly, but some users are now complaining that our "internal" data is printing when they print an item. When we add the UserProperty it is done as:

prop = ((Outlook._MailItem)olitem).UserProperties.Add("TimeMattersID", Outlook.OlUserPropertyType.olText, true, System.Type.Missing);

This is a direct port of some VB6 code that did the same thing. Strange part is that the VB6 code did not allow the userproperty to print.

Anyone experience something like this? Any thoughts how to get around it?

Thanks,
Todd
Posted 03 Nov, 2006 12:18:50 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Todd.

Try to set 'false' as the third parameter in the Add method.
Posted 03 Nov, 2006 12:45:34 Top
Todd Carlson




Posts: 29
Joined: 2006-05-07
Sergey,
Tried that one. It didn't appear to make a difference.

I also tryed setting the last parm to olOutlookInternal.

Todd
Posted 03 Nov, 2006 12:49:57 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Todd, do the users print Outlook Items via Print button in Outlook inspector?
BTW, the 'false' parameter doesn't change the state of the current view if the property has already been added with the 'true' parameter. In this case you need to remove it via the 'Customize View' dialog in Outlook.
Posted 03 Nov, 2006 13:49:31 Top