How to force page break (Form Feed)

Posted by: don8 on 4 August 2017, 3:02 pm EST

  • Posted 4 August 2017, 3:02 pm EST

    I have a simple report with a text field in the detail line that I build using LF/CR which works. I have an image in another trailer which shows signatures which works and the last trailer has option data in a single text field. What I need is when I need to create another page of data using the same fields above, how do I get AR to know it is a new page so when I view it I see each page of data?

    Is there an event I can fire so AR knows I am finished with loaded the text fields for this page and I need to start another page?

    This should not be this hard but I am missing something. I can build the first page just fine. I know I have another set of data to show, I just need to be able to show more than one page with of data. This is totally unbound.
  • Replied 4 August 2017, 3:02 pm EST


    To force the page break at run-time you can use PageBreak control wich can be activated on the current page during the report processing:

    You need to place this control in the section and activate it from the code depending on your specific conditions.
  • Replied 4 August 2017, 3:02 pm EST

    I have attached the report itself. I added the control but that did not do what I needed. Note I loaded the text fields with data from detail thru trailers. When I am finished I need to indicate that AR is supposed to go to the next page so I can load more data. End result would be data on different pages.

    Here is a snippet of the code at the trailer end. This works for 1st page. But the next set of data is not on a new page....

    Thanks for the help.

    SMARTLynxTicketReprint.TicketReprintSignatureImage.Picture = LoadPicture(sFileOut)

    OrderReprintSignatureData = String$(35, "-") & Chr(10)

    OrderReprintSignatureData = OrderReprintSignatureData & SLSignature_SalesOrder_Tb("SLSign_SO_Name")

    SMARTLynxTicketReprint.TicketReprintSignatureData.Text = OrderReprintSignatureData

    SMARTLynxTicketReprint.SignatureFooter.Visible = True


    SMARTLynxTicketReprint.SignatureFooter.Visible = False

    End If





    ' Check if EPA


    If SavEPA <> "" Then

    SavEPA = SavEPA & "----------------------------------------------"

    SMARTLynxTicketReprint.TicketReprintEPAData.Text = SavEPA

    SMARTLynxTicketReprint.EPAFooter.Visible = True


    SMARTLynxTicketReprint.EPAFooter.Visible = False

    End If


    OrderReprintData = ""

    GoTo But_OrderReprint_Summary_Ticket


    SMARTLynxTicketReprint.Show 1, SMARTLynxEditSalesOrder

  • Replied 4 August 2017, 3:02 pm EST


    <span>Unfortunately, with the code you provided, it is not quite understandable
    what your question is</span>. There is no way to determine that the new page is starting during the group footer processing. The PageStart/End event should be used for this.

    If you need to print the EPAFooter (that is a group footer) section always on the sepearate page, you just need to set the NewPage property to 1-Before. In this case the group footer section will be always printed on the next page:

    If you want to print the group footer section always completely (without any page breaks) on the rest of the page and move the section to next page in case if the section cannot be placed on the same page (due to the data), you can set KeepTogether property to True:

    In other cases you can use PageBreak control and activate/deactivate it from the code depending on your specific condition.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels