Didn??t work. The problem not is when you have less rows in the dataset....is when you have more because I need print 15 rows
in the first page and 15 in the second page....etc.
I need print in a fixed height 15 rows ...if have more tan 15 in the dateset then I need a new page to print the next 15 rows ..etc.
Ok, try to use the following code in the data band's BeforePrint handler:
    private void Data1_BeforePrint(object sender, EventArgs e)
    {
      if (Data1.RowNo > 1 && ((Data1.RowNo - 1) % 15) == 0)
        Engine.StartNewPage();
    }
Ok, its work ....but I have two more databand with fixed height where I print Observation text of the invoice...so...I can not start a new page because I have Observation text to print.
Example: In this example the Obs. area 1 and Obs. area 2 have the same process that product detail area...I only cant put 'n' rows.
In the attached sample with 3 pages and 3 bands (Producst, Obs 1 and Obs 2) per page; ANY of 3 bands can print in the page the data and if no has space then request a new page.
I've one more question.
In my report if its has more one page the second page is a little different (but has the same databand that the first page...in another possition). Is possible to change the layout of the second page but, of course, print the databands?
Comments
Please check this:
http://www.fast-report.com/documentation/U...temptybands.htm
in the first page and 15 in the second page....etc.
I need print in a fixed height 15 rows ...if have more tan 15 in the dateset then I need a new page to print the next 15 rows ..etc.
Thanks.
Example: In this example the Obs. area 1 and Obs. area 2 have the same process that product detail area...I only cant put 'n' rows.
+
invoice area
+
1 | |
2 | product detail area |
. | |
. | |
15 +
+
+
+ +
+
| Obs. area 1| | Obs. area 2 |
| | | |
+
+ +
+
In the attached sample with 3 pages and 3 bands (Producst, Obs 1 and Obs 2) per page; ANY of 3 bands can print in the page the data and if no has space then request a new page.
Thanks.
I will test entire report today.
I've one more question.
In my report if its has more one page the second page is a little different (but has the same databand that the first page...in another possition). Is possible to change the layout of the second page but, of course, print the databands?
Thanks
Thanks.
I did a little change in the report (see atached) and have issue in the report.
Can you help me?
Constant dripping wears away the stone.