` MS-Word mail-merge code 2 (Peter Kirk) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

OLE/ActiveX: MS-Word mail-merge code 2
2004-07-05 -- Peter Kirk
 
Newsgroups: softvelocity.clarion.language > 1. Are you displaying the Word window? Yes, see line - ?OBJ{'Visible'} = vbTrue > 2. How do you define vbTrue and vbFalse? I embeded the following code in 'After Global Includes' !VBA Constants vbFalse EQUATE(0) vbTrue EQUATE(-1) !Word Document Constants wdDoNotSaveChanges EQUATE(0) wdPrintPreview EQUATE(4) !Excel WindowState xlMaximized EQUATE(-4137) xlMinimized EQUATE(-4140) xlNormal EQUATE(-4143) PS> Just as an afterthought, Occasional problem with Object not closing:- Sometimes the Application Object will not close correctly following PROP:DeActivate. I use TerminateProcess (API), but others have reported success calling prop:deactivate (3 or more times) until the Object closes. Regards Peter Kirk


Today is November 23, 2024, 8:23 pm
This article has been viewed 35365 times.
Google search has resulted in 24 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: