Pergunta

How to page break after Specific rows (like 15 rows) in rdlc reporting.

Foi útil?

Solução

It's so easy.Suppose My reports looks like

enter image description here

Enable advance mode

enter image description here

Add a group for page break

enter image description here

Define the number of rows what do you want in the group expression(In this case i want 15 rows)

enter image description here

Delete group column if you not need

enter image description here enter image description here

Delete Expression from Group details

enter image description here enter image description here

Select Group Properties and set page break attribute breakLocation as End,Disables as false and RestPageNumber as fasle.

enter image description here

Select Group Details Properties and Set Disable=true

enter image description here

Now here's the report with page break after specific row

enter image description here enter image description here

If You want to keep Table Header in every page than click here

Outras dicas

You can add Row Group to your Tablix. Then in row group properties select Page Break section and set "Between each instance of a group".

What I did was create another property on your object called lineBreak or something. when loading the objects make sure every 25 has the same number and increment by 1. then in table put a group over the details, grouping on lineBreak. then add an extra line inside that group, then every 25th row should be a blank line.

Maybe you can use a rectangle with pagebreak, the rectangle is able to define a fixed heigth

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top