Attachments to ActiveInspector / Type of Inspector

  • Thread starter Thread starter Ole Weigelt
  • Start date Start date
O

Ole Weigelt

Hello Everybody,

I am quite new to OL programming. I would like to add an attachment to the
mail that is currently open. I have added a button to the toolbar of the
inspectors. Now I would like to

1. Determine if the current inspector is a mail item. If not, I will disable
the button

2. In the click-procedure for the button, I would like to add an attachment
to the current Inspector.

Can anybody help me?

Thanks for reading

Ole Weigelt
 
1) The item currently open is ActiveInspector.CurrentItem. Use its Class property to determine the type of item it is.

2) You add the attachment to the *item*, not the Inspector, which is just the UI: Application.ActiveInspector.CurrentItem.Attachments.Add
 
The Force is strong with you... ;-)

Thanks so much. Now it works.

Ole Weigelt

1) The item currently open is ActiveInspector.CurrentItem. Use its Class
property to determine the type of item it is.

2) You add the attachment to the *item*, not the Inspector, which is just
the UI: Application.ActiveInspector.CurrentItem.Attachments.Add
 

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

Back
Top