Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word.PrintOut() fail
Message
From
20/03/1998 14:03:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Word.PrintOut() fail
Miscellaneous
Thread ID:
00086072
Message ID:
00086072
Views:
72
Here's the code:
loWord = GETOBJECT(, "Word.Application")
loword.documents.open("c:\temp\test.doc")
loword.activeprinter = "WinFax on LPT1:"
loword.ActiveDocument.MailMerge.Destination = 0
loword.activedocument.MailMerge.SuppressBlankLines = .T.
loword.activedocument.MailMerge.Execute()
loword.activedocument.printout()   && <-- Error!
loword = NULL
rele loword
The program stop at the PrintOut() method call with a "OLE error code XXX. Type mismatch".

Any ideas?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform