Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   How to attach a file with MS Outlook, from a program? (http://www.outlookbanter.com/outlook-using-forms/94366-how-attach-file-ms-outlook.html)

niladri September 1st 09 09:16 PM

How to attach a file with MS Outlook, from a program?
 
I am using Powerbuilder. Is there any way to attach a file to the MS
Outlook...from the Application Program itself?

N.B. The User will not have to attach the file fut the program will
automatically attach the file..

thanks
niladri




Ken Slovak - [MVP - Outlook] September 2nd 09 02:17 PM

How to attach a file with MS Outlook, from a program?
 
You can't attach a file to the application. You can attach it to an item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"niladri" wrote in message
...
I am using Powerbuilder. Is there any way to attach a file to the MS
Outlook...from the Application Program itself?

N.B. The User will not have to attach the file fut the program will
automatically attach the file..

thanks
niladri





niladri September 14th 09 02:18 PM

How to attach a file with MS Outlook, from a program?
 
Ken, No.. you did not understand my questtion al all... Let me explain you
again...

1. I am running an application using Powerbuilder.
2. From this application I am calling MS Outlook.
3. Users then search for a specific file (some .doc, .xls etc) to attach
with this Outlook.

I want to create something so that I can attach the file with Outlook
(instead user to look for it...since I know exactly what file needs to be
attached...)

all users are left to do is to put the Recipient address and Send....


-niladri

"Ken Slovak - [MVP - Outlook]" wrote:

You can't attach a file to the application. You can attach it to an item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"niladri" wrote in message
...
I am using Powerbuilder. Is there any way to attach a file to the MS
Outlook...from the Application Program itself?

N.B. The User will not have to attach the file fut the program will
automatically attach the file..

thanks
niladri






Ken Slovak - [MVP - Outlook] September 14th 09 02:24 PM

How to attach a file with MS Outlook, from a program?
 
You would use the Outlook object model to do that. I have no idea about
Powerbuilder, but in VBA code if oMail is a mail item then this would attach
a file to the item:

Dim oAttach As Outlook.Attachment
Set oAttach = oMail.Attachments.Add("pathToTheFile")

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"niladri" wrote in message
...
Ken, No.. you did not understand my questtion al all... Let me explain you
again...

1. I am running an application using Powerbuilder.
2. From this application I am calling MS Outlook.
3. Users then search for a specific file (some .doc, .xls etc) to attach
with this Outlook.

I want to create something so that I can attach the file with Outlook
(instead user to look for it...since I know exactly what file needs to be
attached...)

all users are left to do is to put the Recipient address and Send....


-niladri




All times are GMT +1. The time now is 05:56 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