Invoice problem

dbadba
edited 8:01PM in FastReport .NET

Hi, I need a fixed height area of the report where print 15 ROWS BY PAGE of my datatable. If this possible?

Thanks

Comments

  • dbadba
    edited 8:01PM
    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.

    Thanks.
  • edited 8:01PM
    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();
        }
    
  • dbadba
    edited 8:01PM
    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.

    +
    invoice area
    +
    1 | |
    2 | product detail area |
    . | |
    . | |
    15 +
    +

    +
    + +
    +
    | Obs. area 1| | Obs. area 2 |
    | | | |
    +
    + +
    +
  • edited 8:01PM
    Could you attach your report file here?
  • dbadba
    edited 8:01PM
    Yes, of course.

    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.
  • edited 8:01PM
    Ok, it's a bit tricky. You need to use the script to do this. See the attached report example, you can run it from Demo.exe.
  • dbadba
    edited 8:01PM
    Amazing!!!

    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
  • edited 8:01PM
    Yes, it is possible. You may hide/show objects from the script, move it or resize.
  • dbadba
    edited 8:01PM
    Ok, I will try it.

    Thanks.
  • dbadba
    edited 8:01PM
    Hi, have one more questions.

    I did a little change in the report (see atached) and have issue in the report.

    Can you help me?



  • edited 8:01PM
    It is hard to come ture, but I can try it. >
    Constant dripping wears away the stone.
  • dbadba
    edited 8:01PM
    AlexTZ, can you help me with this little issue???

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.