Tuesday, April 19, 2011
Tip of the Day - Using BRUSH_STYLE and PEN_STYLE Properties in Reports
Product: R:BASE eXtreme 9.1 (32/64)
Update.: 3
Build..: 9.1.3.10414 or higher http://www.rupdates.com
Section: Report PROPERTY Commands
Object.: Shape
While in Report Designer, when placing a Shape Object, you may also
customize the Shape Type, Fill Color, Line Color, Line Thickness, and
Line Style.
Did you know that using the new PROPERTY commands you may dynamically
change the Shape Style and Pen Style as well?
Here's how:
Syntax:
PROPERTY <ShapeObjectCompID> BRUSH_STYLE 'value'
Supported Values:
SOLID
CLEAR
HORIZONTAL
VERTICAL
F_DIAGONAL
B_DIAGONAL
CROSS
DIAG_CROSS
PROPERTY <ShapeObjectCompID> PEN_STYLE 'value'
Supported Values:
SOLID
DASH
DASH_DOT
DASH_DOT_DOT
CLEAR
INSIDE_FRAME
USER_STYLE
ALTERNATE
You may dynamically change BRUSH_STYLE and PEN_STYLE Properties
as On Before Generate Report Action or conditionally as On Before
Generate Action on any Report Band, as you wish.
-- Example 01
-- Database: RRBYW17
-- Report: InvoiceSummary_Brush_Style_Pen_Style
-- Using New BRUSH_STYLE and PEN_STYLE Properties for Shape Control
-- Action: Report Header [Before Generate]
-- Cover Page Shapes
PROPERTY CoverPage_Shape_01 BRUSH_STYLE 'HORIZONTAL'
PROPERTY CoverPage_Shape_01 PEN_STYLE 'SOLID'
PROPERTY CoverPage_Shape_02 BRUSH_STYLE 'VERTICAL'
PROPERTY CoverPage_Shape_02 PEN_STYLE 'DASH'
PROPERTY CoverPage_Shape_03 BRUSH_STYLE 'F_DIAGONAL'
PROPERTY CoverPage_Shape_03 PEN_STYLE 'DASH_DOT'
PROPERTY CoverPage_Shape_04 BRUSH_STYLE 'B_DIAGONAL'
PROPERTY CoverPage_Shape_04 PEN_STYLE 'DASH_DOT_DOT'
RETURN
-- Action: Page Header [Before Generate]
-- Page Header Shapes
PROPERTY PageHeader_Shape_01 BRUSH_STYLE 'CROSS'
PROPERTY PageHeader_Shape_01 PEN_STYLE 'INSIDE_FRAME'
PROPERTY PageHeader_Shape_01 BRUSH_STYLE 'DIAG_CROSS'
PROPERTY PageHeader_Shape_01 PEN_STYLE 'ALTERNATE'
RETURN
-- Action: Break Footer 0 [Before Generate]
-- Break Footer Shape
PROPERTY BreakFooter_Shape_01 BRUSH_STYLE 'B_DIAGONAL'
PROPERTY BreakFooter_Shape_01 PEN_STYLE 'DASH_DOT_DOT'
RETURN
-- Action: Report Footer [Before Generate]
-- Report Footer Shape
PROPERTY ReportFooter_Shape_01 BRUSH_STYLE 'SOLID'
PROPERTY ReportFooter_Shape_01 PEN_STYLE 'DASH_DOT'
RETURN
For your viewing pleasure, here is a report that illustrates the
use of new BRUSH_STYLE and PEN_STYLE properties of Shape control.
http://www.razzak.com/tips/InvoiceSummary_Brush_Style_Pen_Style.pdf
In addition, notice the feature of designing a custom "Cover Page"
and Page Header and Page Footer options, not to mention the compact
size of PDF document using R:BASE eXtreme 9.1.
Have fun implementing BRUSH_STYLE/PEN_STYLE properties in Reports!
Very Best R:egards,
Razzak.
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================