how to add Table Header on each page with comate plus

Just starting out? Need help? Post your questions and find answers here.
leodh
Enthusiast
Enthusiast
Posts: 164
Joined: Sun Nov 06, 2005 6:07 am
Location: Perth Western Australia

how to add Table Header on each page with comate plus

Post by leodh »

Hi,
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
Regards
Leo