Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ole error 0x80010105 (error 1426) 1

Status
Not open for further replies.

smartglass

IS-IT--Management
Mar 14, 2006
33
GB
Hi there:
I am trying to add a button to a purchase requisition form that picks up data from vfp, loads it into Word and emails the doc via Outlook to Purchase clerk for placing with supplier.
however I get an intermittent error as above, with text 'the server threw an exception'. I hate intermittent but cannot find a pattern to it - prelaunching Outlook, starting without Outlook, ditto Word - the error can still pop up on first pass, or third, or not at all!
I am conscious, too, that the OUTLOOK.EXE process can end up running more than once and would naturally like to minimise the number of times the process is fired up then shutdown.
Does anybody know of (a) the error and (b) how to keep the instances of OUTLOOK to a minimum (ie if already running keep at one; if not close down altogether)
Thanks in anticipation!
 

Smartglass,

Sorry I can't help you with that particular OLE error.

However, Outlook behaves differently from other Office products as far as COM is concerned. With Word and Excel, each time you do a CREATEOBJECT(), it launches a new intance of the application. But with Outlook, you only launch it once, no matter how many times you do a CREATEOBJECT().

Another difference is that, launching Outlook with CREATEOBJECT()does not launch any visible user interface. The Outlook object has no Visible property. You have to launch the interface separately.

So, you don't have to worry about minimising the number of instances in memory.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top