Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook OLE error code 0x00000001: Incorrect function
Message
De
01/02/2006 10:29:24
 
 
À
01/02/2006 09:35:29
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01092329
Message ID:
01092353
Vues:
19
Hi Gary,
First, basic troubleshooting questions. Has anything in the system changed? OS, Outlook version, Fox version, etc?

Second thought... I would swear I have seen this before. Could that outlook be in a state for some reason that it is unable to popup a message, even if you tried manually? I.e. Outlook has some modal dialog in the foreground?


>Im having problems with automating emails. The application has been working fine for YEARS, but all of a sudden on one pc only I get:
>
>OLE error code 0x00000001: Incorrect function
>
>When trying to display outlook, My codes looks like this:
>
>loOutlook=CREATEOBJECT("Outlook.Application")
>loMessage=loOutlook.CreateItem(olMailItem)
>loMessage.To=somone@anaddress.com
>loMessage.Subject="test message"
>loMessage.Body="My test"
>loMessage.Attachments.Add(<PdfFile>)
>
>loMessage.Display()       && Error happens Here!
>
>loMessage=.NULL.
>loOutlook=.NULL.
>
>
>any ideas?
>
>Gary.
Paul A. Busbey
Victoria Insurance
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform