Categories > OpenTBS with DOCX >

Page break and headergrp

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Execute
Date: 2014-05-16
Time: 10:47

Page break and headergrp

Hi,

I'm new to TBS/OpenTBS but I like it !

well, I have a docx with a 3 lines table

1) [db.title;block=tbs:row;headergrp=title]
2) [db.subtitle;block=tbs:row;headergrp=subtitle]
3) [db.field1;block=tbs:row]


I'd like to add a pagebreak before first title

I've put a pagebreak on the first paragrah and change the first line like this:

1) [db.title;block=tbs:page;headergrp=title]

but then, the 3rd line give only 1 result !

I've split the table to put the title on it's own paragraph but tbs:p give me strange results (landscape lost, empty pages...)

Regards
Paul (France)
By: Skrol29
Date: 2014-05-28
Time: 00:31

Re: Page break and headergrp

Bonjour Paul,

I cannot see what you are trying to do.

In your first snippet, each row has a "block=tbs:row" definition.  This will make an alternative display.
By: Execute
Date: 2014-05-28
Time: 06:25

Re: Page break and headergrp

well, I have a data source like this

title1, detail1
title1, detail2
title1, detail3
title2, detail4

my template is like this
row1>[db.title;block=tbs:row;headergrp=title]
row2>[db.detail;block=tbs:row]

it works fine bit I want a pagebreak at each new title

title1
detail1
detail2
detail3
---new page---
titel2
detail2

this template
(pagebreak on paragraph)
row1>[db.title;block=tbs:page;headergrp=title]
row1>[db.detail;block=tbs:row]

give me this

title1
detail3
---new page---
titel2
detail2
By: Skrol29
Date: 2014-05-28
Time: 16:59

Re: Page break and headergrp

Hi,

If you want a page break on each new title, you can simply enable the "page break before" on the first paragraph in the first cell of the table.
By: Execute
Date: 2014-05-28
Time: 19:05

Re: Page break and headergrp

Hi,

Sorry but I can't see how to add a page break inside a table cell, at least under LibreOffice that I use for docx documents..

anyway, does it have any sense to put a page break in a cell ?

Regards