[Openroad-users] Embedding MS Word in an OR application

Bodo Bergmann Bodo.Bergmann at ingres.com
Sat Apr 5 01:01:21 EST 2008


Q1:
Rather than "cmd /c" have you tried to use "start /B" ?
 
Q2:
I'm not a mail merge specialist, but have found some technotes
where this error appears if no DataSource has been attached:
See http://www.dbforums.com/showthread.php?t=1547058 and
http://support.microsoft.com/kb/825765/en-us
 
Bodo
 
Bodo Bergmann
Senior Software Engineer
OpenROAD Worldwide Development
Ingres Corp.
 

________________________________

From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Laverty,
Danny
Sent: Friday, April 04, 2008 3: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/c5ffb70f/attachment-0001.html 


More information about the Openroad-users mailing list