Home Devices

How Do I?

edited April 2003 in Devices
Programmatically create a form feed?

Comments

  • edited April 2003
    RB doesn't support a form feed explicitly, because the report engine needs
    to know that it shouldn't print anymore on the current page. If you want to
    end the page as the report is generating, then use a group in the report and
    code the OnGetBreakValue event. Set the group to start on a new page in the
    groups dialog. Base the group on a static label in the report so that the
    group never breaks unless you want it to in the OnGetBreakValue event.
    Change the break value to any different string than before in order to force
    a group break, since it is based on a text comparison.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    Ok, now is there a way to put a border around my fields without using the
    line component?
  • edited April 2003
    Options:

    1. You should use a TppLine and use its Shift* and Stretch* properties to
    have it draw correctly. Does it not work for your case?

    2. Place them all in a region. The region will draw a line around them and
    can stretch to contain them

    3. Create draw commands based on the output that the RB engine created on
    the page. Here is an example of usng lines and a draw command to place a
    border around a page breaking group:

    http://www.digital-metaphors.com/tips/BorderAroundGroupProj.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.