Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Help for a novice (http://www.outlookbanter.com/outlook-using-forms/5638-help-novice.html)

Sue Mosher [MVP-Outlook] February 25th 06 12:53 AM

Help for a novice
 
Because the method that I provided *is* exactly what Outlook does when you open an attachment in the UI.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"SuperSlueth" wrote in message ...
Sorry I don't follow

If I double click on the attachment it opens without saving it to disk
therefore why can't it just be opend with code


On Fri, 24 Feb 2006 18:24:12 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

You can't open an attachment that way (and you'd know that if you looked in the object browser at the Attachment object; it has no Open method). You must save each attachment first to your hard drive and then open it, either with the appropriate automation for that type of file or with a Shell Execute type of command. See http://www.outlookcode.com/codedetail.aspx?id=1140 for a code sample.

You might also enjoy Eric's sample at http://msdn.microsoft.com/library/en...PictAttach.asp


SuperSlueth February 27th 06 12:26 AM

Help for a novice
 
Thanks works really well.


I would like to delete the saved attachments files when the user
closes the email

Is there anyay to sence when the user closes the email window so I can
delete the files.

I also need to close an application at the same time
(Windows picture & fax veiwer)




On Fri, 24 Feb 2006 18:53:40 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

Because the method that I provided *is* exactly what Outlook does when you open an attachment in the UI.


SuperSlueth February 27th 06 12:36 AM

Help for a novice
 
I've just seen te the picture & fax viwere is loaded by

rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscre en %1

is there an easy way to close this event by VBA code



On Fri, 24 Feb 2006 18:53:40 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

Because the method that I provided *is* exactly what Outlook does when you open an attachment in the UI.


Sue Mosher [MVP-Outlook] February 27th 06 02:43 PM

Help for a novice
 
If you want to use VBA code to track when the user closes an open item, you will need to use an Inspector wrapper class to track the Close event of ***all*** open messages. Ken Slovak has a good sample. See http://www.outlookcode.com/d/vb.htm#wrapper

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"SuperSlueth" wrote in message ...
Thanks works really well.


I would like to delete the saved attachments files when the user
closes the email

Is there anyay to sence when the user closes the email window so I can
delete the files.

I also need to close an application at the same time
(Windows picture & fax veiwer)




On Fri, 24 Feb 2006 18:53:40 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

Because the method that I provided *is* exactly what Outlook does when you open an attachment in the UI.


Sue Mosher [MVP-Outlook] March 7th 06 02:32 PM

Help for a novice
 
See if the code snippet at http://www.vba-programmer.com/Snippe...plication.html helps with this.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"SuperSlueth" wrote in message ...
I've just seen te the picture & fax viwere is loaded by

rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscre en %1

is there an easy way to close this event by VBA code



On Fri, 24 Feb 2006 18:53:40 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

Because the method that I provided *is* exactly what Outlook does when you open an attachment in the UI.



All times are GMT +1. The time now is 07:51 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com