Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE: 0x80020005 error when printing via word 97
Message
From
27/03/1998 17:12:22
Regine Rosewich
Aurum Ges.F.Untern.Ber.U.Integration Mbh
Freiamt, Germany
 
 
To
27/03/1998 02:42:29
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00087569
Message ID:
00087837
Views:
42
>Because the report write can't print some text sideways and other text normal, i
>decided to use word 97 as a report writer. I made a document, create a connection to my
>datasource (via mailmerge) and saved the file.
>
>
>In VFP i wrote the following program lines to print the report:
>
>LOCAL Word
>word=createobject("word.application.8")
>word.activeprinter=getprinter()
>word.documents.open(SET("DEFAULT")+SYS(2003)+"\etiket.doc")
>
>Word.activedocument.printout(,,,,,,2) && make 2 copies
>word.documents.close
>word.quit
>
>
>This works fine in NT 4.0 and in the development environment of VFP under Window 95
>
>But when i make an Executable and start it, it generates the following
>error message: "OLE : 0x80020005: Type mismatch" on the printout line.
>
>It seems to be that this will only occur when i start the executable (rather than
>the APP or the lines in the command window) under Windows 95.
>
>By the way: I'm using :
>Windows 95 latest version
>MicroSoft Office 97 (Professional)
>The correct ODBC drivers
>
>I've tried this on two sepparate machines: the same result.
>Might this be a bug ???

Did you already install the Office-Service-Pack1 for your MS-Office Version. I got the same error using VfP-based Interface between a Unix-Host and a Office environment. It was gone after having installed the SR1Off97.exe from Microsoft.

Regine
********************************
VFP, VB, VC++ Programmers
Makers of the ==>TheMiL<== engine
for intra- and internet data processing
********************************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform