[Openroad-users] Embedding MS Word in an OR application
Laverty, Danny
Danny.Laverty at falkirk.gov.uk
Fri Apr 4 23:56:36 EST 2008
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).
1. 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/31317b15/attachment.html
More information about the Openroad-users
mailing list