[Openroad-users] Embedding MS Word in an OR application
gareth.2.edwards at bt.com
gareth.2.edwards at bt.com
Sat Apr 5 01:04:58 EST 2008
Following on from my previous post about the AutoRun macro. If you do
not wish to adopt that approach, record a macro, performing the merge in
question, then make sure you have all the correct methods/properties set
and called.
Cheers,
Gareth Edwards
BT Global Services
t: +44 (0)131 300 1907
e: Gareth.2.Edwards at BT.com <mailto:gareth.2.edwards at bt.com>
________________________________
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Laverty,
Danny
Sent: Friday, April 04, 2008 2:57 PM
To: 'openroad-users at sealion.peerlessit.com'
Subject: [Openroad-users] Embedding MS Word in an OR application
Despite the help I have received, I still can't cleanly do what
I was trying to achieve (my current situation is listed at the end of
this e-mail in case it is relevant). Indications are that the problems
are related to my PC environment and probably my version of OpenROAD.
If this is the case then I am probably wasting my time trying to achieve
the impossible and need to change my environment before proceeding.
Can anyone tell me when ActiveX became stable/usable with
OpenROAD (I suspect it is OR4.1 SP3 and above)?
N.B. I am developing in OR4.1 SP2 and can't move up to SP3
until our entire 300+ user PCs have been upgraded to SP3 (due to a known
bug that results in application crashes on OR4.1 SP2 runtime PCs if the
image has been created in OR4.1 SP3).
Thanks
Danny
1. Open an MS Word document in an MS Word window
* I can successfully achieve this by entering "CMD.exe
/c c:/WordDoc.doc" in Start --> Run on my PC. The use of the /c ensures
the Command window automatically closes once it has opened the MS Word
window.
* When I try to do the equivalent from within OR, I
can't get into the MS Word window until I manually shut down the Command
window (despite using the /c).
2. Open an MS Word mail merge document, run the merge and
then print the merged document.
* I can open the MS Word document (in the background).
I can even print this document (again, in the background) if I want.
* When I try to run the merge - using external Visual
Basic Method "Mailmerge.Execute()" - it fails with the message
E_WT006D The invocation of an external object method failed.
The method 'execute' for source 'Microsoft Word' returned an error code
of 80020009 and the error message: 'This method or property is not
available because the document is not a mail merge main document.'
* Not unexpectedly, the resulting print is blank.
________________________________
************************************************************************
*********************
The information contained in this e-mail is confidential and is
intended only for the named recipient(s). If you are not the intended
recipient, you must not copy, distribute or take any action or reliance
on it. If you have received this e-mail in error, please notify the
sender. Any unauthorised disclosure of the information contained in this
e-mail is strictly prohibited.
The views and opinions expressed in this e-mail are the senders
own and do not necessarily represent the views and opinions of Falkirk
Council.
************************************************************************
*********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080404/f6810fa7/attachment.html
More information about the Openroad-users
mailing list