[Openroad-users] FW: ActiveX Word - hanging
Paul White
pwhite at peerlessit.com.au
Sun Mar 23 23:34:48 EST 2008
From: Pete Wilkinson
Sent: Wednesday, 19 March 2008 9:31 PM
To: openroad-users at peerlessit.com
Subject: ActiveX Word - hanging
We've had Word merging & printing working fine with ActiveX through OR,
but this was with a single local instance; Word starts, merges, then
prints the document or lets it remain open if rquired. This was fine
until in practice the users were keeping lots of documents open, hence I
had lots of instances of Word running!
So I've been trying to get it to work with a global instance, with
varying degrees of success. All seems ok until you start to interact
with Word, the egg-timer appears and the document cannot be used. Word
is not showing as using any significant processor time, Word just seems
locked somehow!?
I've a global variable of type ExtObject, which is assigned to the
correct Word Library version at runtime. I start an invisible frame up
which initates Word, assigns the instance to a global var, then watches
for Word events, code similar to that below:
FV005_WORD_LIBRARY_GV = ExtObject;
INITIALISE () =
DECLARE
oWord = WinWord!Application;
ENDDECLARE
BEGIN
FV005_WORD_LIBRARY_GV = oWord;
END;
ON EXTCLASSEVENT 'Quit' =
BEGIN
FV005_WORD_LIBRARY_GV = NULL;
END;
In my main print routine, I then use the global variable, casting it,
and acessing the Word methods/attributes like so:
WinWord!Application(FV005_WORD_LIBRARY_GV).Documents.Open(...)
WinWord!Application(FV005_WORD_LIBRARY_GV).WindowState = 2;
etc ....
The code executes fine, no errors, and Word appears correct until you
try using it ...
Any ideas anyone?
**********************************************************************
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/20080323/1eaa3845/attachment.html
More information about the Openroad-users
mailing list