Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Viewing Preview

edited September 2002 in General
RP7 / D6.02

I have a form layed out as a Main (front) and a subreport (back).

When I preview this form I get the header and the footer, but no detail. I
have added a number of DBText fields and the ones that I have link to a
table all fill in on the design page, but not on the preview page. No text
is displayed in the detail at all.

Also, how can I preview the subreport in the designer?

-Johnnie

Comments

  • edited September 2002
    Example is attached. The key is to use the main report as a driver, and not
    put actual layout elements in it...

    --
    Cheers,

    Tom Ollar
    Digital Metaphors Corporation

  • edited September 2002
    Thanks Tom. I'll check it out.
    - Johnnie

  • edited September 2002
    Tom,

    As suggested, I moved the two pages to subreports. On these subreports I
    have a header and footer on each page. These do not appear. The detail
    body appears for each page, just not the header and footer. Do I need to
    move the header and footer into the detail or is there some easier way.

    It takes forever to manipulate all of these fields in the report designer.
    When shift-clicking on multiple fields if you're too fast you end up moving
    them accidentally.

    Also, I decided to use regions to simplify moving groups of fields around
    the pages and noticed that if you put a few fields in a region, select the
    region, cut it, and then paste it on another subreport, all of the fields
    are moved within the region for some reason.

    -Johnnie

  • edited September 2002
    Right click over each subreport and select Section. The reports must be
    section type subreports...

    --
    Cheers,

    Tom Ollar
    Digital Metaphors Corporation
  • edited September 2002
    They are already as "section". Before I did that I noticed they would
    overprint each other on the preview. Looking at your example, I changed
    them to "section".

    If I wasn't clear: I have a header and footer on each subreport page. It
    is different for each of the two subreports which I named "front" & "back"
    (clever names heh!). The header and footer does not appear on the previw
    page.

    Also, I want to be able to automatically use a duplex printer if it is
    available to print the "back" subreport on the back. My print options will
    be: (selected at run-time)
    Print form front (simplex)
    Print form back (simplex)
    Print form front+back (simplex - two pages) If no duplex printer available
    Print form front+back (duplex) When duplex printer is selected.

    Thanks for your help,
    Johnnie

  • edited September 2002
    Right-click over the header and footer bands in the subreports. They
    probably have Visible set to False. This happens whenever you preview child
    type subreports - the header and footer bands get turned off, since they are
    not supported in that subreport type.

    The example has the second subreport set to duplex; however, I would just
    set the duplex option on the main report - that should do it.

    For these two options:


    Set one or the other subreport.Visible to false, that way only one of the
    subreports will print...

    Cheers,

    Tom
This discussion has been closed.