I am trying to add table header to each page in word with Comate Plus, I can not seem to get it to work.
Does anyone have an example of how its done.
From what I can tell, I need to set HeadingFormat to true and RepeatOnEveryPage = true but I can not get the syntax right.
Code: Select all
oRange = oDoc\GetObjectProperty("Bookmarks('\endofdoc')\Range")
If oRange
oTable2 = oDoc\GetObjectProperty("Tables\Add(" + Str(oRange) + " as COMateObject," +
Str(LabCount + 1) + ",7)")
oTable2\SetProperty("Tables\Rows\HeadingFormat = #True")
oTable2\SetProperty("RepeatOnEveryPage = #True")
oTable2\SetProperty("Range\Style = 'Table Grid'")
Cheers
Leo