Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Michael Sutherland, on Tuesday, January 28, 2003 11:47 PM

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.
 24-Jan-2003 00:04
User is offline View Users Profile Print this message


Geoff Wilson

Posts: 9
Joined: 23-Jan-2003

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
Report this to a Moderator Report this to a Moderator
 24-Jan-2003 20:50
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Answer 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.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 29-Jan-2003 00:24
User is offline View Users Profile Print this message


Geoff Wilson

Posts: 9
Joined: 23-Jan-2003

Cheers,

Geoff
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.