G
Garrold
Hi all, hope someone can help with this.
I'm doing a mail merge with some data from a database and a word
document template. I'm replacing bookmarks in the template with the
data. The whole document template is set with a left indent of 0.5cm,
but when I add a table to the document, the indent gets ignored. I've
tried adding
Word.Table oTable;
Word.Range wrdRange;
(WordDocument is part of my base class, representing the
Microsoft.Office.Interop.Word.Document)
wrdRange = WordDocument.Bookmarks.get_Item(ref oBookmark).Range;
oTable = WordDocument.Tables.Add(wrdRange, intRows, 5, ref oMissing,
ref oMissing);
oTable.Range.ParagraphFormat.LeftIndent = 0.5F;
but this does not fix the problem.
Any ideas?
Many thanks
Gaz
I'm doing a mail merge with some data from a database and a word
document template. I'm replacing bookmarks in the template with the
data. The whole document template is set with a left indent of 0.5cm,
but when I add a table to the document, the indent gets ignored. I've
tried adding
Word.Table oTable;
Word.Range wrdRange;
(WordDocument is part of my base class, representing the
Microsoft.Office.Interop.Word.Document)
wrdRange = WordDocument.Bookmarks.get_Item(ref oBookmark).Range;
oTable = WordDocument.Tables.Add(wrdRange, intRows, 5, ref oMissing,
ref oMissing);
oTable.Range.ParagraphFormat.LeftIndent = 0.5F;
but this does not fix the problem.
Any ideas?
Many thanks
Gaz