PC Review


Reply
Thread Tools Rate Thread

How to attach a file with MS Outlook, from a program?

 
 
niladri
Guest
Posts: n/a
 
      1st Sep 2009
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



 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      2nd Sep 2009
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" <(E-Mail Removed)> wrote in message
news:91838354-1DB6-4AA2-88C1-(E-Mail Removed)...
>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
>
>
>


 
Reply With Quote
 
niladri
Guest
Posts: n/a
 
      14th Sep 2009
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" <(E-Mail Removed)> wrote in message
> news:91838354-1DB6-4AA2-88C1-(E-Mail Removed)...
> >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
> >
> >
> >

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      14th Sep 2009
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" <(E-Mail Removed)> wrote in message
news:8B8D47FF-CD4C-4429-8433-(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook will not let me attach a file =?Utf-8?B?SmVycnkgS3JpZWc=?= Microsoft Outlook Discussion 1 2nd Mar 2007 11:59 PM
RE: Outlook will not let me attach a file =?Utf-8?B?Sy4gT3JsYW5k?= Microsoft Outlook Discussion 0 2nd Mar 2007 10:48 PM
error when open a saved outlook file that contain tiff file attach =?Utf-8?B?YWg=?= Microsoft Outlook Discussion 0 12th Sep 2006 09:31 AM
Cannot attach a file in Outlook =?Utf-8?B?U2VyZ2U=?= Microsoft Outlook Discussion 12 17th Apr 2006 05:41 AM
Attach file in outlook =?Utf-8?B?TWEgTXVuIEtlZW4=?= Microsoft Outlook Discussion 1 8th Mar 2005 10:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 PM.