How to disable Printing Custom Fields in Outlook

  • Thread starter Thread starter Deva
  • Start date Start date
D

Deva

Hi,
I have created a custom field and stored the custom field
along with MailItem. But when user prints the email,
custom field is also coming along with that. Is there
anyway I can disable printing the custom fields.
I also like to know is there anyway to get a handle when
outlook starts and quits. I need to start my application
when outlook starts and quit when it quits.
Eagerly looking forward your reply.

Thanks in advance..

Thanks,
Deva
 
Hi Sue Mosher,
Thanks for your immediate reply. But the custom fields
are not in the UI.Its added through user properties.
Here is the sample code for it.

Set objOutlook = CreateObject("Outlook.Application")
Set objMailItem = objOutlook.CreateItem(olMailItem)
objMailItem.Display

objMailItem.UserProperties.Add "Deva", olText, False
objMailItem.UserProperties.Item("Deva").Value = "test"
objMailItem.Save

When I print this email, it also prints the custom field
Deva with value test.

I dont want this to happen is there any way i can disable
printing those custom fields through program.

thanks a ton for your instant replies.

Deva

-----Original Message-----
RIght-click the control that displays the custom field.
You'll find an option on the right-most tab for disabling
saving to a file and printing.
 
Back
Top