working with word document

  • Thread starter Thread starter Troy22222
  • Start date Start date
T

Troy22222

Guest
I have a word document that I want to populate existing tables.


I have to use the following instruction multiple times in an operation.

string templete1 = "C:\\Quote Project Templetes\\" + Settings.Default.string_FileOpen + ".docx";
Word.Application wordapp = new Word.Application();
wordapp.Visible = true;
Word.Document document = wordapp.Documents.OpenNoRepairDialog(templete1);
document.Activate();
Word.Table table1 = document.Tables[2];


I don't want to open another file I simply really only need to access another existing table however to do so I need to declare another wordapp, document and templete. This doesn't work.

Any suggestions or clarification of what needs/can be done.

Thanks in advance.

Tc




tac

Continue reading...
 
Back
Top