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

Converting from Quick Report

edited July 2002 in General

I am new to RB and I am currently converting some Quick Report to RB and
have some general questions:

1. How do I center a label on a band? QR has the 'align to band' property,
and I did not see an equivilent. I looked in the RB help under 'center' but
it did not talk about this subject.

2. How do I skip the printing of the detail band (for the current iteration)
while in the before print event? QR passed the 'PrintBand' variable in the
event that may be set by the user.

3. When I used the ppReport.PrintReport method the report executes correctly
but the window size is small. How do I maximize the report window and select
the page width view?

4. I noticed that page up and page down keys do not work in the report view
screen and it seems the user must use the mouse to click on the arrows. Is
there anyway I can enable the page keys?


Thanks in advance,

J. Michael Eubanks
Ideal Software Systems, Inc.

Comments

  • edited July 2002
    >
    but
    One way to accomplish this: set the width of the label equal to the width of
    the band, then set TextAlignment to taCenter (or click the Center
    justification icon.)

    Another way is to calculate the label position before the report generates.
    You can set the label position in code: ppLabel1.spLeft := 10; {for 10
    screen pixels}

    iteration)
    In the BeforePrint event of the detail band:

    if (NeedToSkip) then
    ppReport1.Detail.Visible ;= False
    else
    ppReport1.Detail.Visible := True;

    correctly
    select
    In the OnPreviewFormCreate event of the Report component:

    uses
    ppTypes, ppViewr;

    ppReport1.PreviewForm.WindowState := wsMaximized;
    TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;

    view
    Try Ctrl-Page-Up Ctrl-Page-Down. To replace the Print Preview form with a
    customized version of your own, see the Building a Reporting Application
    tutorial in the Developer's Guide:

    RBuilder\Developer's Guide


    Cheers,

    Tom Ollar
    Digital Metaphors Corporation
This discussion has been closed.