Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  OutlookFUSE (Forum Locked Forum Locked)
       Forum Search Results
 
Subject Topic: PWAttachments._Add Post Reply Post New Topic
Message posted by rakesh.khatri on 16 October 2005 at 11:30am
View rakesh.khatri's Profile Profile   Search for other posts by rakesh.khatri Search   Quote rakesh.khatri Quote   Send Private Message Send Msg  
rakesh.khatri
Standard Member
Standard Member
United States
16 October 2005
2 Posts

Hi Steve -

I'm trying to send a outlook message with anattachment.

_PWAttachments._Add  procedure(tVariant Source, tVariant _Type, tVariant _Position, tVariant DisplayName, *long pvObject),HRESULT,virtual  !*IAttachment pvObject

Can you help me pass this information. Howdo I set the filename?

Thanks,

Rakesh

 


Message posted by steve_johnson on 18 October 2005 at 8:34pm
View steve_johnson's Profile Profile   Search for other posts by steve_johnson Search   Visit steve_johnson's Homepage www   Quote steve_johnson Quote   Send Private Message Send Msg  
steve_johnson
Avatar
Forum Moderator
Forum Moderator
United States
13 April 2002
274 Posts

Hi Rakesh -

The following URL contains docs on the Attachments.Add method and a VB example demonstrating it

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/html/olmthaddattachmentsobj.asp

So the Source parameter will be a tVariant containing a BSTR with file to attach. 

setting the filename would be like

BstrFileName.Init(szFilename)

vtSource.vt = VT_BSTR

vtSource.iVal = BstrFileName.GetStr()

Please let me know if that helps - thanks!



-------------
Steve Johnson
ThinkData Inc.
http://www.thinkdata.com

Message posted by rakesh.khatri on 23 October 2005 at 8:22pm
View rakesh.khatri's Profile Profile   Search for other posts by rakesh.khatri Search   Quote rakesh.khatri Quote   Send Private Message Send Msg  
rakesh.khatri
Standard Member
Standard Member
United States
16 October 2005
2 Posts

Hi Steve -

I tried this but I'm missing something simple. Do you happen to have any example.

All I'm trying to do is send an email with attachment.

Rakesh

 


Sorry, you can NOT post a reply.
This forum has been locked by the forum administrator.

Forum Jump Post Reply Post New Topic
Printer Friendly Version Printable version