Sales invoice report in two pages

Victor_HugoVictor_Hugo Member Posts: 12
Dear friends,

I need to find a way to make our sales invoice report stop when a certain number of items is printed and jump to another page continuing the printing process with the remaining items. Is there an easy way to do that?

Thanks for all!

Victor

Comments

  • BeliasBelias Member Posts: 2,998
    IF NoOfItems = 10 then 
      currreport.NEWPAGE
    
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • DenSterDenSter Member Posts: 8,305
    With the right paper size settings, it shoud automatically do this.
  • SavatageSavatage Member Posts: 7,142
    view->sections
    on sales invoice line dataitem (BODY)

    OnPostSection()
    // example of how to allow only 10 lines per page
    LinesPerPage := LinesPerPage + 1;
    IF LinesPerPage = 10 THEN
      CurrReport.NEWPAGE;
    
  • ajhvdbajhvdb Member Posts: 672
    DenSter wrote:
    With the right paper size settings, it shoud automatically do this.

    Yes, but sometimes I get strange results. For example I have exactly room for 10 lines.
    If there are 11 invoice lines the second page contains 1 line and the total.
    If there are 10 invoice lines the second page contains only the total (depending on the used/needed sections. This doesn't look nice..so with NEWPAGE you can push the 10th line to the next page.
  • Victor_HugoVictor_Hugo Member Posts: 12
    Ok! I am going to try this and report the reults.

    Many Thanks!
  • HazratiHazrati Member Posts: 8
    Hi Victor.. I also face the same problem like this n still no solve this prob..

    what am doing before is increase the bottom margin so that i could get 10 invoice lines however my sales invoice have a footer (have to print at the last page) and it print on the next page which contains no invoice lines..
    :-k
Sign In or Register to comment.