Databand with Fixed number of lines

Stimulsoft Reports.NET discussion
Post Reply
bsilence
Posts: 34
Joined: Wed Feb 13, 2013 12:15 pm

Databand with Fixed number of lines

Post by bsilence »

Hello,

Is there a way to fix a databand to a fixed number of lines?
Like, for example, i have a business object that will produce a info with 54 lines. What i want is to make sure that in the first page i will have only 40 lines in my databand and in the second the rest, 14.

Thank you for your help.

Best regards.

Bruno Fernandes
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Databand with Fixed number of lines

Post by Jan »

Hello Bruno,

Thank you for your question.
You can place your DataBand in Panel component. You can change number of output lines with help of height of Panel. Please check attached sample.

Thank you.
Attachments
DataBandInPanel.mrt
(14.92 KiB) Downloaded 228 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Databand with Fixed number of lines

Post by HighAley »

Hello, Bruno.

Also you could enter next code in the Before Print event of the Data Band next code:

Code: Select all

if(Line > 40)
	Engine.NewPage();
Thank you.
Post Reply