How to disable Printing Custom Fields in Outlook

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
 
D

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top