Help!

Error to access Row

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Tables RSS
Next:  How do I view/access the second sheet of labels f..  
Author Message
Dezaum
External


Since: Oct 27, 2009
Posts: 1



PostPosted: Tue Oct 27, 2009 6:20 am    Post subject: Error to access Row
Archived from groups: microsoft>public>word>tables (more info?)

I dont know how to insert a image here, so i will draw.

I have a table like this
__________
|__|______|
|__|______|

I can access the table with this code, and add a new row on my table

Object oMissing = System.Reflection.Missing.Value;

object oTemplateCapa = @"E:\teste.doc";

Object oTrue = true;
Object oFalse = false;

Word.Application oWord = new Word.Application();
Word.Document oWordDoc = new Word.Document();
oWord.Visible = true;

oWordDoc = oWord.Documents.Add(ref oTemplateCapa, ref oMissing,
ref oMissing, ref oMissing);

object beforeRow = oWordDoc.Tables[1].Rows[1];
Word.Rows row = oWordDoc.Tables[1].Rows;
row.Add(ref beforeRow);

But the table below, the position of the colunms are different, and i cant
access this table
__________
|__|___|__|
|____|____|

Why i cant access, and why i can resolve this problem? Thankyou!
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Tables All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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