Skip to main content

Section Control Conversion

This section explains the main rules of label, text box, picture box, image and shape type section control conversion from Classic Dynamics NAV to RDLC format report.

Label Conversion

Label type section controls are converted to RDLC format layout text boxes. The main label conversion rules:

  1. If function CurrReport.LANGUAGE is used somewhere in Classic Dynamics NAV report code, there is new C/AL text constant created for label conversion and values from Caption and CaptionML label properties are transferred to it, otherwise new label in Report Label Designer is created and Caption and CaptionML property values are transferred to it.
  2. If property CaptionClass has a value, new Report Dataset Designer column is created with “Data Source”= CAPTIONCLASSTRANSLATE(CaptionClass property value) and used in layout.
  3. Helvetica FontName is converted to Arial FontFamily by default.
  4. If label DataSetFieldName property is specified, all new dataset columns, text boxes, labels and C/AL text constants created for label conversion are named by DataSetFieldName property value. If DataSetFieldName property is not specified, names are generated by parent control SourceExpr property value. If patent control is undefined, then names are generated by Caption property value.

Label control properties can be transferred to proper RDLC format report layout or dataset properties or not used after conversion if not relevant.

List of label properties which are transferred to RDLC format report layout properties:

Classic Label PropertyRDLC Text Box Property
XPosLocation -> Left
YPosLocation -> Top
WidthSize -> Width
HeightSize -> Height
VisibleVisibility -> Hidden
HorzAlignAlignment -> TextAlign
VertAlignAlignment -> VerticalAlign
FontNameFont -> FontFamily
FontSizeFont -> FontSize
FontBoldFont -> FontWeight -> Bold
FontItalicFont -> FontStyle -> Italic
FontStrikethruFont -> TextDecoration -> LineThrough
FontUnderlineFont -> TextDecoration -> Underline
LeaderDotsBorder -> BorderStyle -> Bottom -> Dotted

List of label properties which are transferred to Report Dataset Designer (Data Source column):

Classic Label PropertyRDLC Field "Data Source"
CaptionClassCAPTIONCLASSTRANSLATE(CaptionClass)
  • Example. Conversion of label control with CaptionClass property specified.

    If label CaptionClass property is specified,
    section-conversion

    during conversion there is column created with CAPTIONCLASSTRANSLATE(CaptionClass) as Data Source section-conversion

    and used in layout text box as value expression. section-conversion

List of label properties which are transferred to Report Label Designer label or C/AL text constant properties:

Classic Label PropertyLabel Or Text Constant Property
CaptionCaption
CaptionMLCaptionML

List of label properties which are not transferred after conversion:

Classic Label Property
ID
Name
HorzGlue
VertGlue
ParentContr
InFrame
InPage
InColumnHeading
ForeColor
HorzGlue
VertGlue
ParentContr
BackColor
BackTransparent
Border
BorderColor
BorderStyle
BorderWidth
MultiLine
PadChar
ToolTip
ToolTipML
Description

Text Box Conversion

Text box type controls are converted to RDLC format report layout text boxes. The main text box conversion rules:

  1. If property CaptionClass has a value, new Report Dataset Designer column is created with Data Source CAPTIONCLASSTRANSLATE(CaptionClass property value) and used in child control text box expression.
  2. Helvetica FontName is converted to Arial FontFamily by default.
  3. If text box DataSetFieldName property is specified, all new dataset columns and text boxes created for text box conversion are named by DataSetFieldName property value. If DataSetFieldName property is not specified, names are generated by SourceExpr property value.

Text box control properties can be transferred to proper RDLC format report dataset field or layout text box properties and expressions or not used after conversion if not relevant.

List of text box properties which are transferred to RDLC format report layout properties:

Classic Text Box PropertyRDLC Text Box Property
XPosLocation -> Left
YPosLocation -> Top
WidthSize -> Width
HeightSize -> Height
VisibleVisibility -> Hidden
HorzAlignAlignment -> TextAlign
VertAlignAlignment -> VerticalAlign
FontNameFont -> FontFamily
FontSizeFont -> FontSize
FontBoldFont -> FontWeight -> Bold
FontItalicFont -> FontStyle -> Italic
FontStrikethruFont -> TextDecoration -> LineThrough
FontUnderlineFont -> TextDecoration -> Underline

List of text box properties which are transferred to RDLC format report layout text box expression:

section-conversion

  • Example 1. Conversion of text box with decimal value in SourceExpr property specified and BlankZero=Yes.

    If there is text box with BlankZero=Yes and decimal value in SourceExpr property specified, section-conversion

    after conversion there is Report Dataset Designer column created with SourceExpr value in Data Source section-conversion

    and layout text box created with expression:
    section-conversion

  • Example 2. Conversion of text box with boolean value in SourceExpr property specified and BlankZero=Yes.

    If there is text box with BlankZero=Yes and boolean value in SourceExpr property specified, section-conversion

    after conversion there is Report Dataset Designer column created with SourceExpr value in Data Source section-conversion

    and layout text box created with expression: section-conversion

List of text box properties which are transferred to Report Dataset Designer column properties:

Classic Text Box PropertyDataset Text Box Property
OptionStringOptionString
OptionCaptionOptionCaption
OptionCaptionMLOptionCaptionML
DecimalPlacesDecimalPlaces
AutoFormatTypeAutoFormatType
AutoFormatExprAutoFormatExpr
SourceExprSourceExpr
AutoCalcFieldAutoCalcField
FormatSourceExpr = FORMAT(SourceExpr,0,’FromatPropertyValue’
  • Example 3. Conversion of text box with Format property specified.

    If there is text box with Format property specified, section-conversion

    during conversion there is column created with Format and SourceExpr properties values used in FORMAT function section-conversion

List of text box properties which are not transferred to RDLC format repot:

Classic Text Box Property
ID
Name
HorzGlue
VertGlue
Enabled
Editable
Focusable
ParentContr
InFrame
InPage
InColumn
InMatrix
InMatrixHeading
InColumnHeading
ForeColor
BackColor
BackTransparent
Border
BorderColor
BorderStyle
BorderWidth
MultiLine
PadChar
LeaderDots
MaxLength
PasswordText
AutoEnter
ToolTip
ToolTipML
Lookup
DrillDown
AssistEdit
DropDown
PermanentAssist
Description
Title
MinValue
MaxValue
NotBlank
Numeric
CharAllowed
DateFormula
ClosingDates
ValuesAllowed
NextControl
ClearOnLookup
SignDisplacement
Divisor
TableRelation
ValidateTableRelation
LookupFormID
DrillDownFormID

Picture Box Conversion

Picture boxes are converted to RDLC layout images. The main picture box conversion rules:

  1. For picture box conversion there is RDLC layout image created with Sizing=FitProportional.
  2. Every RDLC layout image is added to rectangular in order to avoid location shifts if visibility expression used.
  3. If picture box DataSetFieldName property is specified, image created for picture box conversion is named by DataSetFieldName property value. If DataSetFieldName property is not specified, name is generated by SourceExpr property value. Image container rectangular name is generated from image name and word Wrapper combination.

Picture box control properties can be transferred to proper RDLC format report layout image, rectangular or dataset properties or not used after conversion if not relevant.

List of picture box properties which are transferred to RDLC format report image’s rectangular properties:

Classic Picture Box PropertyRDLC Rectangular Property
XPosLocation -> Left
YPosLocation -> Top
WidthSize -> Width
HeightSize -> Height

List of picture box properties which are transferred to RDLC format report layout image properties:

Classic Picture Box PropertyRDLC Image Property
XPosLocation -> Left
YPosLocation -> Top
WidthSize -> Width
HeightSize -> Height
VisibleVisibility -> Hidden
HorzAlignAlignment -> TextAlign
VertAlignAlignment -> VerticalAlign
DataSetFieldNameName (if not empty)

List of picture box properties which are transferred to Report Dataset Designer column properties:

Classic Picture Box PropertyDataset Column Property
SourceExprSourceExpr
AutoCalcFieldAutoCalcField

List of picture box properties which are not transferred to RDLC format repot:

Classic Picture Property
ID
Name
HorzGlue
VertGlue
Enabled
Focusable
ParentContr
InFrame
InPage
InColumn
InMatrix
InMatrixHeading
Caption
CaptionML
BackColor
BackTransparent
Border
BorderColor
BorderStyle
BorderWidth
BitmapList
ToolTip
ToolTipML
Description
NextControl
CaptionClass
  • Example. Conversion of picture box control.

    If there is picture box control used in Classic Dynamics NAV report section-conversion

    with source expression,
    section-conversion

    during conversion there is a column for SourceExpr value created, section-conversion

    layout image and rectangular as image container created section-conversion

    with properties:
    section-conversion section-conversion

Image Conversion

Image type control is converted to RDLC format report layout image. The main image conversion rules:

  1. Image is converted to RDLC layout image with Source = External and Value = Bitmap properties values. After conversion user can change Source property value from External to Embedded and import picture file form the path specified in Value property.
  2. Converted image has Sizing property set to FitProportional value.
  3. Every RDLC layout image is added to rectangular in order to avoid location shifts if visibility expression used.
  4. If image DataSetFieldName property is specified, converted image is named by DataSetFieldName property value. If DataSetFieldName property is not specified, name is generated by combination of ID property value and word Image (for example Image1000000033). Image container rectangular name is generated by combination of image name and word Wrapper (for example Image1000000033_Wrapper)

Image control properties can be transferred to proper RDLC format report layout image and rectangular properties or not used after conversion if not relevant.

List of image properties which are transferred to RDLC format report layout image’s rectangular properties:

Classic Image PropertyRDLC Rectangular Property
XPosLocation -> Left
YPosLocation -> Top
WidthSize -> Width
HeightSize -> Height
DataSetFieldNameName (if DataSetFieldName is not empty)
IDName = “Image”+ ID + “Wrapper” (if DataSetFielName empty)

List of image properties which are transferred to RDLC format report layout image properties:

Classic Image PropertyRDLC Rectangular Property
XPosLocation -> Left
YPosLocation -> Top
WidthSize -> Width
HeightSize -> Height
VisibleVisibility -> Hidden
BitmapGeneral -> Value
DataSetFieldNameName (if DataSetFieldName is not empty)
IDName = “Image”+ ID (if DataSetFielName empty)

List of image properties which are not transferred to RDLC format repot:

Classic Image Property
Name
HorzGlue
VertGlue
ParentControl
InFrame
InPage
InMatrixHeading
BackColor
BackTransparent
Border
BorderColor
BorderStyle
BorderWidth
ToolTip
ToolTipML
Description
  • Example. Conversion of image control.

    If there is image control with Bitmap property specified used in Classic Dynamics NAV report, section-conversion

    then during conversion there is layout image and rectangular as image container created section-conversion

    with properties:
    section-conversion

    Image source can be changed from External to Embedded and proper image file imported.

Shape Conversion

Shape type control depending on ShapeStyle property value can be converted to RDLC layout rectangular, line or even image. The main shape control conversion rules:

  1. Shape type control is not converted if Border=No.
  2. Converted shapes are named by the type of created RDLC format report control. If there is a shape with ShapeStyle = HorzLine, after conversion it has a name of word Line and some random number from seven digits combination (for example Line9516006)
  3. Shape type control is not converted if ShapeStyle = Triangle.

There are different rules of shape control conversion depending on ShapeStyle property:

  • Rectangular and RoundedRectangular

    If Rectangular or RoundedRectangular value is specified in ShapeStyle property, this control is converted to RDLC format report layout rectangular.

    List of shape properties which are transferred to RDLC format report layout rectangular properties:

    Classic Rectangular or RoundedRectangular PropertyRDLC Rectangular Property
    XPosLocation -> Left
    YPosLocation -> Top
    WidthSize -> Width
    HeightSize -> Height
    VisibleVisibility -> Hidden
    BorderWidthBorder -> BorderWidth
  • Oval

    If Oval value is specified in ShapeStyle property, this control is converted to image control with embedded image source of oval figure with width specified in BorderWidth property. Also image control is added to rectangular control which prevents from location shifts if some visibility expression used.

    List of shape properties which are transferred to RDLC format report layout image’s rectangular properties:

    Classic Oval PropertyRDLC Rectangular Property
    XPosLocation -> Left
    YPosLocation -> Top
    WidthSize -> Width
    HeightSize -> Height

    List of shape properties which are transferred to RDLC format report layout image properties:

    Classic Oval PropertyRDLC Image Property
    WidthSize -> Width
    HeightSize -> Height
    VisibleVisibility -> Hidden
  • NW-Line

    Shape with NW-Line value specified in ShapeStyle property is converted to RDLC format report layout line control.

    List of shape properties which are transferred to RDLC format report layout line properties:

    Classic NW-Line PropertyRDLC Line Property
    XPosLocation -> Left
    YPosLocation -> Top
    WidthEndPoint -> Horizontal = XPos + Width
    HeightEndPoint -> Vertical = YPos + Height
    VisibleVisibility -> Hidden
    BorderWidthStyle -> LineWidth
  • NE-Line

    Shape with NE-Line value specified in ShapeStyle property is converted to RDLC format report layout line control.

    List of shape properties which are transferred to RDLC format report layout line properties:

    Classic NW-Line PropertyRDLC Line Property
    XPosLocation -> Left
    YPosLocation -> Vertical
    WidthEndPoint -> Horizontal = XPos + Width
    HeightLocation -> Top = YPos + Height
    VisibleVisibility -> Hidden
    BorderWidthStyle -> LineWidth
  • HorzLine

    Shape with HorzLine value specified in ShapeStyle property is converted to RDLC format report layout line control.

    List of shape properties which are transferred to RDLC format report layout line properties:

    Classic NW-Line PropertyRDLC Line Property
    XPosLocation -> Left
    YPosLocation -> Top = YPos + Height/2
    WidthEndPoint -> Horizontal = XPos + Width
    HeightEndPoint -> Vertical = YPos + Height/2
    VisibleVisibility -> Hidden
    BorderWidthStyle -> LineWidth
  • VertLine

    Shape with VertLine value specified in ShapeStyle property is converted to RDLC format report layout line control.

    List of shape properties which are transferred to RDLC format report layout line properties:

    Classic NW-Line PropertyRDLC Line Property
    XPosLocation -> Left = XPos +Width/2
    YPosLocation -> Top
    WidthEndPoint -> Horizontal = XPos + Width/2
    HeightEndPoint -> Vertical = YPos + Height
    VisibleVisibility -> Hidden
    BorderWidthStyle -> LineWidth

    Shape control properties are not transferred to RDLC format report if not relevant.

List of shape control properties which are not transferred to RDLC format repot:

Classic Shape Property
ID
Name
HorzGlue
VertGlue
ParentControl
InFrame
InPage
InColumnHeading
BackColor
BackTransparent
BorderColor
ToolTip
ToolTipML
Description