Help!

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

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Forms RSS
Next:  why did the format of my task change?  
Author Message
niladri
External


Since: Sep 01, 2009
Posts: 2



PostPosted: Tue Sep 01, 2009 1:16 pm    Post subject: How to attach a file with MS Outlook, from a program?
Archived from groups: microsoft>public>outlook>program_forms (more info?)

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
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Wed Sep 02, 2009 9:17 am    Post subject: Re: How to attach a file with MS Outlook, from a program? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" <niladri.TakeThisOut@discussions.microsoft.com> wrote in message
news:91838354-1DB6-4AA2-88C1-0E86C10442C0@microsoft.com...
>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
>
>
>
Back to top
niladri
External


Since: Sep 01, 2009
Posts: 2



PostPosted: Mon Sep 14, 2009 6:18 am    Post subject: Re: How to attach a file with MS Outlook, from a program? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" <niladri.DeleteThis@discussions.microsoft.com> wrote in message
> news:91838354-1DB6-4AA2-88C1-0E86C10442C0@microsoft.com...
> >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
> >
> >
> >
>
>
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Mon Sep 14, 2009 9:24 am    Post subject: Re: How to attach a file with MS Outlook, from a program? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" <niladri RemoveThis @discussions.microsoft.com> wrote in message
news:8B8D47FF-CD4C-4429-8433-153FE89541DD@microsoft.com...
> 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
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum