` Printed Icetips Article

Icetips Article



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



Printed April 30, 2024, 1:25 am
This article has been viewed/printed 35122 times.
Google search has resulted in 24 hits on this article since January 25, 2004.