Good afternoon, tell me, how can I add a code? I need to open a word-template, make edits and add a table at the very end. The first two points were made, but with the addition of a table at the end of the file of the problem.
public static void createWord() { wordapp = new Word.Application(); Object path = @"D:\WorkSpace\Projects\testWord\testWord\testWord\Sh.dot"; try { worddocument = wordapp.Documents.Add(ref path, ref missingObj, ref missingObj, ref missingObj); worddocument.Bookmarks["Well"].Range.Text = "asdfasdf"; //Что нужно писать? } catch (Exception e) { worddocument.Close(ref falseObj,ref missingObj,ref missingObj); wordapp.Quit(ref missingObj,ref missingObj,ref missingObj); worddocument = null; wordapp = null; //throw new Exception(); } wordapp.Visible = true; }