[Openroad-users] Word ActiveX (again!) - External Class Events

Ian Utley Ian.Utley at luminary.co.uk
Tue Jul 8 20:20:43 EST 2008


Hi Pete,

 

    A shot in the dark here, but have you tried declaring the parameter
doc_closing = WinWord!Document DEFAULT NULL.

 

Ian.

 

Ian Utley
Luminary - An Ingres Company
Tel: +44 (0) 845 371 4090
Email: @luminary.co.uk

 

For more information on Luminary go to http://www.luminary.co.uk
Luminary Solutions Limited Registered in England No 4854134 VAT Reg No.
829 3166 13
Registered Office: Lacon House, Theobald's Road, London, WC1X 8RW

________________________________

From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Pete
Wilkinson
Sent: 08 July 2008 10:53
To: openroad-users at peerlessit.com
Subject: [Openroad-users] Word ActiveX (again!) - External Class Events

 

I'm working in OR4.1 SP3, as External Class Events in OR2006 are not
working correctly, so whilst I wait for a fix ... 

I want to know what document is closing, so I trap the external class
event as follows: 

ON EXTCLASSEVENT 'DocumentBeforeClose' (doc_closing = WinWord!Document)=

BEGIN 

CurFrame.Trace ( text = 'closing:' + VARCHAR(doc_closing.Name) ); 

END; 

Now this works in the sense, in that it reports the document name
closing, however it seems the declaration in the parameter list of
'WinWord!Document' actually initiates a new document to be
opened/created ... not quite what I was expecting 

is this a bug, and is there away around it? I've tried having the
parameter as type ExtClass but that was of no use.

**********************************************************************

SunGard Public Sector Limited, Marshfield, Chippenham, Wiltshire  SN14
8SR
Telephone: 08456 041999,  Fax: 08456 052999

Registered Office:  33 St Mary Axe, London EC3A 8AA.  Registered in
England No.
1593831 VAT Reg No. GB 810 9546 34

**********************************************************************

CONFIDENTIALITY: This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and is intended
solely for the use of the individual or entity to whom they

are addressed. Any unauthorized disclosure or use is prohibited. If you
received this e-mail in error, please notify the sender and delete this
e-mail from your system.

**********************************************************************


This message has been checked for all known viruses on behalf of SunGard
Public Sector by MessageLabs. 

http://www.messagelabs.com or Email:
mailsweeper.info at vivista.sungard.com

For further information http://www.sungardps.co.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080708/d0713ae5/attachment.html 


More information about the Openroad-users mailing list