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: add row to table in word
Topic Summary: How do you add a row at the end of a table in word
Created On: 22-Sep-2006 19:38
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 David McMahon, on Monday, September 25, 2006 4:49 PM

Answer:

We do something similar, we first add a row to the bottom of the word table than we write the data to that last row.....

Attached are examples of the code we use...

(Ignore the falseOnError as this is a error handeling function.)
To call the first function you need to know the Table Index Number in the Word Document , and have an established an WORD session via Ole Automation (OleAutoObject objWord).

To call the second function you also need to know the column number to write the data to....


Hope this helps.....

 22-Sep-2006 19:38
User is offline View Users Profile Print this message


David Bond

Posts: 5
Joined: 2-Mar-2006

This has been bugging me for several days and I haven't been able to find a solution.  I have a lot of objects to process and a lot of processing before a decision is made to enter data from the object into a word table.  Each object's data resides in a different row in the table.  I could do all of that processing twice, the first time to see how many rows to use and then create a table with that many rows, but that would require a lot of extra processing.  Instead I would like to just add a new row to the table whenever needed.

I've been unable to figure out how to select a row in the table to use the method InsertRowsBelow on.  Can anyone help me here?

If it makes any difference we are using DOORS 7.1, but will be migrating to 8.1 by the end of the year.

Thanks
Report this to a Moderator Report this to a Moderator
 25-Sep-2006 09:00
User is offline View Users Profile Print this message


David McMahon

Posts: 16
Joined: 15-Apr-2005

Answer Answer

We do something similar, we first add a row to the bottom of the word table than we write the data to that last row.....

Attached are examples of the code we use...

(Ignore the falseOnError as this is a error handeling function.)
To call the first function you need to know the Table Index Number in the Word Document , and have an established an WORD session via Ole Automation (OleAutoObject objWord).

To call the second function you also need to know the column number to write the data to....


Hope this helps.....

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.