Categories > OpenTBS with DOCX >

remove last empty page

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Joao Gil
Date: 2013-05-07
Time: 16:36

remove last empty page

I created a template which print one or more pages per database record, so i added a page break in the end to start each record in a 'new' page..
So, after the merge, ill get my records on different pages, and a last empty page which i want to remove..

Is it possible to delete this empty page, after a page break?

im using last TBS and openTBS versions, and im doing it with `block=begin` and a `block=end` after the page break
By: Skrol29
Date: 2013-05-07
Time: 22:51

Re: remove last empty page

Hi Joao,

This is probably because the paragraph on which you put "block=end" is still remaining. You can delete it using parameter "enlarge=w:p".

but the best solution is to use the new feature coming with OpenTBS 1.8.0 : use "block=tbs:page" in any TBS fields that holds the block definition, anywhere in the page.
By: Joao Gil
Date: 2013-05-08
Time: 15:36

Re: remove last empty page

Hi, i tried what u said, and my problem is still there...

the block is repeated as expected, but in the last page, i got a empty page after the "page break"... Is there any way to remove it?
By: Skrol29
Date: 2013-05-09
Time: 23:31

Re: remove last empty page

There must be a remaining content after the page that you believe it is the last.
I need to check your template to understand what's wrong.
By: João Gil
Date: 2013-08-27
Time: 16:48

Re: remove last empty page

can i send u the template? i had opened other topic about this.... realy sorry... u can remove it, if u want to..

thanks in advance
By: Skrol29
Date: 2013-08-27
Time: 22:45

Re: remove last empty page

Yes, you can sent it.
But why did you put a section break at the end ?
By: Skrol29
Date: 2013-08-29
Time: 01:03

Re: remove last empty page

Hi,

In your template the page break is at the last paragraph, while it should be at the first.

Explanations are given in the DOCX example coming with the OpenTBS package:

"
In this example, the first paragraph has a property giving a page break before. Therefore, the page-break is repeated for each record. It can also work if you insert a page-break (from ribbon “Insert”) instead of having it by the paragraph property.
The example also use a block defined with the alias “tbs:page”. This alias is given by OpenTBS and it helps to found the bounds of the page (or pages) according to the page-break defined in the paragraph properties or inserted manually.
If you try to merge one page per record without text before the first page, then make sure that the first paragraph has the property giving a page break before.

"