OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Add row to existing TextTable

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
kuzhie
General User
General User


Joined: 08 Feb 2004
Posts: 26

PostPosted: Mon Feb 23, 2004 6:25 pm    Post subject: Add row to existing TextTable Reply with quote

Hi All,

I've created a doc from template which has a texttable on it. I can get the texttable object by the following code:

XTextTablesSupplier xTextTablesSupplier = (XTextTablesSupplier)UnoRuntime.queryInterface(
XTextTablesSupplier.class, xTemplateComponent);

XNameAccess xNamedTextTables = xTextTablesSupplier.getTextTables();

Object objTextTable = xNamedTextTables.getByName("InvItem");

Then I have no clue as how I can add row to text table from code;

Heellppppp !!!!!!!!!

Kusuma
Back to top
View user's profile Send private message
dfrench
Moderator
Moderator


Joined: 03 Mar 2003
Posts: 1605
Location: Wellington, New Zealand

PostPosted: Mon Feb 23, 2004 7:39 pm    Post subject: Reply with quote

insertByIndex method of xTableRows interface

see 7.3.4 Tables in the Dev Guide
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group