It is currently Thu Apr 18, 2019 9:35 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: how to add Table Header on each page with comate plus
PostPosted: Tue Feb 12, 2019 5:03 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Nov 06, 2005 6:07 am
Posts: 159
Location: Perth Western Australia
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:
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Exabot [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye