Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI Routine Works with Windows Messaging, Not with Outl
Message
From
20/12/2001 06:07:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00586701
Message ID:
00596644
Views:
40
Chuck,
Both KB entries talk about multiple attachments. Actually I couldn't do it with only one attachment no matter what I did including AttachmentPosition. From OCX point I really gave up :) I'd like to hear a working solution with OCX too.
I also found other ways with CDO too before but didn't mention thinking we were seeking a way to make OCX work :) If Outlook is client then the method I trust and works is Outlook automation.
PS: In Q175052 sample I even couldn't pass first line (createobject("mapi.session") )
Cetin

>Cetin,
>Thanks for the info. It's at least good to know that you tried with Outlook 2000 and that your results are consistent with mine. Now we just need to get the resolution! In MS article Q254458, it states, "It is recommended that vendors upgrade their programs to use Collaboration Data Objects (CDO), which is available in Windows 2000." I tried rewriting my code as per MS article Q175052, "HOWTO: Send a Message in Visual FoxPro Using Active Messaging", which, if I'm under the right impression, is code that uses CDO instead of plain MAPI. Still got error messages. "INFO: Differences Between CDO, Simple MAPI, and Extended MAPI (Q200018)" is also an interesting MS article. With regard to your Unspecified Failure, I found it mentioned in the following MS articles:
>"PRB: Multiple E-mail Attachments Cause Error with MSMAPI OCX (Q181899)"
>"PRB: Error 32002 Working with Attachments in MAPI Controls (Q186148)"
>I hope some of this information helps. I am still in a desparate situation because I need badly for this to work and can't seem to come up with a solution. I've even had my problem in the hands of MS now for about a week, and still have got no solution. I would certainly appreciate hearing about it if you, or anybody else that may be involved in this thread, reaches any breakthroughs. Thanks a lot.
>Chuck
>
>>Chuck,
>>Tried with Outlook 2000 and gave up after a series of trial. I think OCX needs an urgent update. I tried with index, position etc to no avail. Attachment not found comes when attachment count is over specified paths as expected but whenever I set it to a correct value (index to 0 for one) I get Unspecified failure :(
>>I think I'll create a FLL using MAPI32.dll when I need it and have time (and send a copy to you:).
>>Cetin
>>
>>>Cetin,
>>>Thanks... will look forward to hearing the results, please.
>>>Thanks Again, Chuck
>>>
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform