Invoice problem

dbadba
edited 7:37AM 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 7:37AM
    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 7:37AM
    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 7:37AM
    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 7:37AM
    Could you attach your report file here?
  • dbadba
    edited 7:37AM
    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 7:37AM
    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 7:37AM
    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 7:37AM
    Yes, it is possible. You may hide/show objects from the script, move it or resize.
  • dbadba
    edited 7:37AM
    Ok, I will try it.

    Thanks.
  • dbadba
    edited 7:37AM
    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 7:37AM
    It is hard to come ture, but I can try it. >
    Constant dripping wears away the stone.
  • dbadba
    edited 7:37AM
    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.