Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Dezaum Dezaum is offline
external usenet poster
 
Posts: 1
Default Error to access Row

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!
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 0x00000005 access denied MaggieV Microsoft Word Help 2 November 1st 07 06:10 AM
Access denied error Richard CHSLTD Microsoft Word Help 1 July 26th 07 11:52 PM
error when trying to access help in word 2007 dstrouse Microsoft Word Help 0 June 7th 07 03:06 AM
access violation error w/scansoft pdf converter pro 2 melman Microsoft Word Help 1 November 11th 05 06:22 AM
I Get a error when trying to access the office assistant hinsha Microsoft Word Help 6 January 25th 05 01:37 AM


All times are GMT +1. The time now is 12:02 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"