In 2D charts, this macro fills a portion of the chart frame with an outlined rectangle and optional phrase. Set fStartX and fStopX to zero to select the lower left corner of the chart frame. The rectangle is outlined with the specified color (nRed, nGreen, nBlue). The nThickness and nStyle parameters define the thickness and style of the outline of the rectangle.
SYNTAX:
@USER_RECT fStartX fStopX fStartY fStopY nRed nGreen nBlue nLineStyle nLineThickness szPhrase
PARAMETERS:
fStartX; 0.0...1.1 X-Axis start location
fStopX; 0.0...1.1 X-Axis stop location
fStartY; 0.0...1.1 Y-Axis start location
fStopY; 0.0...1.1 X-Axis stop location
nRed; 0...255 defines the RED portion of the RGB color
nGreen; 0...255 defines the GREEN portion of the RGB color
nBlue; 0...255 defines the BLUE portion of the RGB color
nLineStyle; 0...15 selects the line style
nLineThickness; 0...1000 Line Thickness
szPhrase; Optional phrase. Add a tilde character (~) to this string if you intend to define another macro in the same title field.EXAMPLE: @USER_RECT.RPT
@USER_RECT 0.0 0.5 0.0 0.5 255 0 0 2 500 Three D Graphics
PERSISTENT:
NO
REQUIREMENTS:
Crystal Reports 9 or Higher
NOTES:
- CRChart supports a maximum of 20 user-defined areas that are created with the following macros: @UF, @USER_CIRCLE, @USER_CIRCLE_ABOVE, @USER_FILL, @USER_FILL2, @USER_FILL_CIRCLE, @USER_FILL_CIRCLE_ABOVE, @USER_FILL_CIRCLE2, @USER_FILL_CIRCLE2_ABOVE, @USER_RECT, and @UW.
- @UF, @USER_CIRCLE..., @USER_FILL..., and @USER_RECT macros are independent of the X or Y axis values/scales.
- This macro can only be used in a 2D chart where depth effect has not been applied with Chart Options/Appearance/Use Depth or Chart Expert/Type/Use depth effect.
Next Macro
Previous Macro
Return to Alpha List
Next Macro in this Group
Previous Macro in this Group
Return to Group List