dbTalk Databases Forums  

VFP 9: Outlook Automation Problem

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 9: Outlook Automation Problem in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 9: Outlook Automation Problem - 01-30-2008 , 06:56 PM






My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.

Reply With Quote
  #2  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM






This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #3  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #4  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #5  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #6  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #7  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #8  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #9  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
  #10  
Old   
Paul Pedersen
 
Posts: n/a

Default Re: VFP 9: Outlook Automation Problem - 01-30-2008 , 10:04 PM



This might be too obvious, but you do have this in there somewhere, right?

#DEFINE olMailItem 0




"Gene Wirchenko" <genew (AT) ocis (DOT) net> wrote

Quote:
My first foray into Automation is adding to my app the ability to
E-mail invoices.

I have an ancient version of Outlook (97 with the SR). While my
code works, it only works most of the time. Sometimes, Outlook hangs
up in .Send(). It hangs up so badly that aborting it does not help.
(When I try to delete messages manually, it locks up hard.) I end up
having to reboot.

Another time, I got an error:
VFP Version: Visual FoxPro 09.00.0000.3504 for Windows
Error Number: 1429
Error Text: OLE IDispatch exception code 61704 from OutlLib.dll:
Internal application error...
Extended Error Text: OLE IDISPATCH EXCEPTION CODE 61704 FROM
OUTLLIB.DLL: INTERNAL APPLICATION ERROR..
Source Line: omailitem=ooutlook.CreateItem(olMailItem)

At this point, I am about to give up and just send the code that
I have and hope that my problems are due to the version of Outlook. I
would rather that what I send work though.

I have followed the code in "Microsoft Office Automation with
Visual FoxPro" very closely. Am I missing anything else?

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.



Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.