![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Setting DocumentProperties in Word via DXL? Topic Summary: Created On: 24-Jan-2003 00:04 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Geoff, The attached example code should work, given a valid handle (objDoc) to a Word Document. If you are using the code as an addition to the Telelogic provided Word exporter, you may not have to declare and create the "objArgBlock", as this is already done. | |
![]() |
|
Has anyone managed to access document properties through DXL? I've been trying to set various document properties in a MS Word document from the DXL OLE functions, but to no avail.
In Word (VBA), it is a simple matter of: ActiveDocument.BuiltInDocumentProperties.Item(1).Value = "<title>" Which will set the title of the document. However, I cannot reproduce this in DXL. As Item is a property, it doesn't seem to work properly with oleGet(objProps, "Item(1)", objProp). Equally, it doesn't work with: clear objArgBlock put(objArgBlock, 1) oleMethod(objProps, "Item", objProp) Which errors with: "User requested a typed return from method 'Item', however this method does not return a value of any type." Any further ideas as to how to gain access to a single DocumentProperty from DXL would be greatly appreciated. Geoff |
|
![]() |
|
![]() |
|
Geoff,
The attached example code should work, given a valid handle (objDoc) to a Word Document. If you are using the code as an addition to the Telelogic provided Word exporter, you may not have to declare and create the "objArgBlock", as this is already done. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
Cheers,
Geoff |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Setting DocumentProperties in Word via DXL?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.