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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 1st 09, 10:16 PM posted to microsoft.public.outlook.program_forms
niladri
external usenet poster
 
Posts: 3
Default 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



Ads
  #2  
Old September 2nd 09, 03:17 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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




  #3  
Old September 14th 09, 03:18 PM posted to microsoft.public.outlook.program_forms
niladri
external usenet poster
 
Posts: 3
Default 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





  #4  
Old September 14th 09, 03:24 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


 




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
Outlook 2007 to Attach a File in an Existing Message Gary Petersen Outlook and VBA 2 February 3rd 09 02:33 AM
Cannot attach vCard file to Sugnature in Outlook 2003 [email protected] Outlook - General Queries 1 October 15th 08 08:00 PM
attach file with automation in Outlook huub van helderen Outlook and VBA 4 May 15th 07 10:13 PM
Cannot Attach File with Outlook 2007 Rob Schneider Outlook - General Queries 1 April 7th 07 03:14 PM
Outlook 2003 attach file very slow, Pls help! Ben Outlook - General Queries 1 October 8th 06 09:39 PM


All times are GMT +1. The time now is 11:49 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-2025 Outlook Banter.
The comments are property of their posters.