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

double-click or save attachment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 16th 06, 12:21 PM posted to microsoft.public.outlook.program_addins
Steffen Heinzl
external usenet poster
 
Posts: 14
Default double-click or save attachment

Hi!

I would like to react to a user's saving an attachment.
Is there an event that I can use, such as clicking on save as or
double-clicking the attachment.

Thanks,
Steffen
Ads
  #2  
Old November 16th 06, 04:11 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default double-click or save attachment

According to the Object Browser (F2) you have BeforeAttachmentSave. Always
check in the Object Browser to see what events, methods and properties are
available for any object or collection.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Steffen Heinzl" wrote in message
...
Hi!

I would like to react to a user's saving an attachment.
Is there an event that I can use, such as clicking on save as or
double-clicking the attachment.

Thanks,
Steffen


  #3  
Old November 16th 06, 04:58 PM posted to microsoft.public.outlook.program_addins
Steffen Heinzl
external usenet poster
 
Posts: 14
Default double-click or save attachment

Ken Slovak - [MVP - Outlook] wrote:
According to the Object Browser (F2) you have BeforeAttachmentSave.
Always check in the Object Browser to see what events, methods and
properties are available for any object or collection.


Thanks. But the problem is that BeforeAttachmentSave is triggered, when
the mail arrives and not when the user tries to save the attachment.

Yours,
Steffen
  #4  
Old November 16th 06, 05:21 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default double-click or save attachment

Sorry, you're correct. It is not fired when an attachment is saved to the
file system. In that case, no, there's no event for that in the Outlook
object model.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Steffen Heinzl" wrote in message
...
Ken Slovak - [MVP - Outlook] wrote:
According to the Object Browser (F2) you have BeforeAttachmentSave.
Always check in the Object Browser to see what events, methods and
properties are available for any object or collection.


Thanks. But the problem is that BeforeAttachmentSave is triggered, when
the mail arrives and not when the user tries to save the attachment.

Yours,
Steffen


  #5  
Old November 17th 06, 12:25 PM posted to microsoft.public.outlook.program_addins
Steffen Heinzl
external usenet poster
 
Posts: 14
Default double-click or save attachment

Ken Slovak - [MVP - Outlook] wrote:
Sorry, you're correct. It is not fired when an attachment is saved to
the file system. In that case, no, there's no event for that in the
Outlook object model.


Any idea how I can change an attachment, when a user tries to access it?
  #6  
Old November 17th 06, 03:19 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default double-click or save attachment

Not offhand, no.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Steffen Heinzl" wrote in message
...
Any idea how I can change an attachment, when a user tries to access it?


  #7  
Old November 23rd 06, 08:10 AM posted to microsoft.public.outlook.program_addins
IceKettle
external usenet poster
 
Posts: 21
Default double-click or save attachment

Hack the window!!!
For Outlook2003,the attachments list container is a rich editor ,it's
windows class name called "RichEdit20W";

For Outlook2000,the attachments list container is a list view window,it's
window class name is "SysListView32".

"Ken Slovak - [MVP - Outlook]"
...
Not offhand, no.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Steffen Heinzl" wrote in message
...
Any idea how I can change an attachment, when a user tries to access it?




  #8  
Old November 27th 06, 09:21 PM posted to microsoft.public.outlook.program_addins
Tony Gravagno
external usenet poster
 
Posts: 12
Default double-click or save attachment

Steffen Heinzl wrote:

Ken Slovak - [MVP - Outlook] wrote:
Sorry, you're correct. It is not fired when an attachment is saved to
the file system. In that case, no, there's no event for that in the
Outlook object model.


Any idea how I can change an attachment, when a user tries to access it?


What is the actual problem you're trying to solve? Here are a couple
ideas that might help you to get around the current issues, but
knowing the real problem might help someone else to think of a better
approach to a real solution.

What about saving ALL attachments to the file system in
BeforeAttachmentSave or related event? Then you can control access to
who opens the files, and you can control what happens when they open
the file from triggers or application code outside of Outlook. You
may want to remove the attachments from Outlook after they've been
saved. I use a macro to remove attachments, put them into a specific
location based on sender and date, and then the body of the mail is
updated with the location of the related file(s).

Here's software for doing something similar:
http://www.sperrysoftware.com/Outlook/Attachment-Save.asp?Source=RS

Is there a way to stop users from doing a SaveAs in Outlook? If so,
then you can turn off the user ability to save attachments and give
them a custom routine of your own. For the above macro I click a
toolbar button - that's an event you can trap.

About changing an attachment, it depends what the attachment is. If
the user opens a Word document, you can use a Word macro or add-in to
see where the file is coming from, and to take some action. If the
path contains "Temporary Internet Files\OLK" then you know Outlook has
the file open.

You can also change that temp directory and then put a
FileSystemWatcher on it so that you can see what's getting dumped into
it and take action. See this KB article for info:
http://support.microsoft.com/kb/817878

HTH
 




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
Can I replace the attachment file when double chick attachment? [email protected] Outlook - General Queries 3 August 3rd 06 05:10 PM
double click mail item jpspringall Outlook and VBA 2 May 31st 06 11:18 AM
Can't double click to create a new appointment in Outlook pts66 Outlook - Calandaring 1 March 2nd 06 07:43 PM
Tasks Not Opening on Double Click Chrispsg Outlook - General Queries 2 February 7th 06 11:47 PM
New Mail Icon Double-Click Action [email protected] Outlook - General Queries 1 January 28th 06 01:32 AM


All times are GMT +1. The time now is 10:15 PM.


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