Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RAVE Reports - how to set a property at runtime

689 views
Skip to first unread message

Matthias Philipps

unread,
Sep 18, 2002, 6:47:28 AM9/18/02
to
Hi there,

I'm testing a litte with Rave and
I don't know how to set propertys in a report at runtime (RAVE 5 /
Delphi 7)
i.e.
1. insert a value of my Delphi application, a variable or the content of
Tedit in a "text" field of the report.
2. manipulate the backgroundcolor of a band to create backgroundstripes.

thanks
matthias

-- is there a better group for rave-report?

Ariel

unread,
Sep 18, 2002, 7:47:30 AM9/18/02
to
maybe in borland.public.delphi.reporting-charting

about the point 1:
you can set params using rvProject1.SetParam
and inside rave, add a DataEdit, and in the dataField field, use the button
with points. there is an option in there to use the param you passed before

Eldon Lewis

unread,
Sep 18, 2002, 1:26:01 PM9/18/02
to
Matthias,

> 1. insert a value of my Delphi application, a variable or the content of
> Tedit in a "text" field of the report.

Use parameters, as already explained by Ariel.

> 2. manipulate the backgroundcolor of a band to create backgroundstripes.

Drop down a rectangle and set it so that it fills the band. Then send it to
back. You can do this by right clicking on the rectangle and selecting order |
send to back from the popup menu. Then with the rectangle heighlighted, click
on the Event Editor. Then select the OnBeforePrint event from the Available
Events combobox. Then in the edit window below the compile button place the
following code:


if Self.FillColor = clGreen then
Self.FillColor := clWhite;
else
Self.FillColor := clGreen;
end if;

Then click the compile button and you'll be all set. When you run your report
the band will be printed in alternating colors of white and green.

Eldon Lewis
Nevrona Designs

0 new messages