![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Error running runfile from Office Topic Summary: Created On: 11-Mar-2004 02:01 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: If you want to pass parameters, then you'll need to use the runStr method instead. e.g. DOORSObj.runStr("#include <addins/myfuncs.inc>\n myFunction(""myModName"")") Note that for string parameters you have to be careful to escape the quotes within the string. From word I beleive this is done by doubling them up. | |
![]() |
|
Dear all,
I installed DOORS 5.0 on my Win2K PC try to execute some dxl from office applications (MS Word, Excel) but there is alway an error. The error when the second line of code is added to the module. Any clue? Many thanks! --Peter Set DOORSObj = CreateObj ("DOORS.Application") DOORSOBJ.runfile ("C:\abc.dxl") Error message: Run-time error "-2147417851 (80010105) Method 'runfile' of object 'DIDoorsDXL' failed Edited: 11-Mar-2004 at 04:24 by CW Pang |
|
![]() |
|
![]() |
|
I am guessing that DOORS is not already running when you make the call.
This gives you the error when you try to run the file before the user has logged into DOORS. The following example is from the manual and shows how to log in. Sub testDoors() Set DOORSObj = CreateObject("DOORS.Application") SendKeys "John Smith" & "{TAB}" & "password" & "{ENTER}", True DOORSObj.runFile ("c:\doors\lib\dxl\example\ddbintro.dxl") End Sub ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Thanks Tony for your information.
I can get the DOORS triggered by Word. One more question, is it possible to pass parameters from Word to DOORS so that a particular project, module and document can be opened. It works in DOORS 4.x but it is not working in DOORS 5.x Best Regards, Peter |
|
![]() |
|
![]() |
|
If you want to pass parameters, then you'll need to use the runStr method instead.
e.g. DOORSObj.runStr("#include <addins/myfuncs.inc>\n myFunction(""myModName"")") Note that for string parameters you have to be careful to escape the quotes within the string. From word I beleive this is done by doubling them up. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» Change Management
»
Error running runfile from Office
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.