… = ReportBorder[…] (gb.report2)
Dim hReportBorder 
As ReportBorder
hReportBorder 
= ReportBorder 
[ sValue As String ]
 
Creates a new border object from a border description and returns it.
The 
Value is a list of the border separated by semi colon.
The border is separated from its properties values by a colon.
You can set each border independently or globally.
  - 
Top
 
  - 
Bottom
 
  - 
Right
 
  - 
Left
 
  - 
Border  for all
 
  
and also the corners properties
  - 
TopLeftCorner
 
  - 
TopRightCorner
 
  - 
BottomLeftCorner
 
  - 
BottomRightCorner
 
  
For border the values are separated by space and can be :
  - 
The size in the allowed unit provided by Report.AllowedUnits property without spacing.
 
  - 
The Brush. It is defined by a ReportBrush string. You can find the description in the ReportBrush Read only link.
 
  
For Corners the values can be given by one or by 2 value separated by space.
Examples
'The most simple border set :
'Set all the borders to 1 px
MyLabel.Border = ReportBorder["border:1px"] 
'Setting a TopRight RoundCorner with a great style.
MyLabel.Border = ReportBorder["border:1px;toprightcorner:5mm 1cm"] 
'Setting the top border with a red to white linear gradient and some round corners
MyLabel.Border = ReportBorder["Border:2mm LinearGradient(1,1,0,0,[#FF0000,#FFFFFF],[1,0]);TopLeftCorner:1mm 0cm;TopRightCorner:5mm 1cm;BottomRightCorner:1mm 15mm;BottomLeftCorner:3mm 7mm"]