Using the Report Designer to Create Templates (PDS)

You can use the Report Designer when you want to either create a new template for your reports, or edit an existing template.

The Report Designer can be accessed from the Report dialog.

The Report Designer was developed in conjunction with DevExpress XtraReports. For more information, see https://documentation.devexpress.com/XtraReports/2162/Reporting.

When the Report Designer is launched, it appears empty, with no report template loaded. The default location for loading and saving templates within the Report Designer should be set based on the default templates folder specified in the Preferences dialog. A new Report page should be added under the Main folder of the Preferences dialog box, as illustrated below:


 

When a report template is loaded into Report Designer, the Field List provides you with a list of all PDS variables available for template customization.

The Report page provides you with the single Report Templates parameter. The default value of the Report Templates parameter is: <OptitexPreferencesPath>\PDS Report Templates, where the <OptitexPreferencesPath> is a regular location of the PDS preferences and supplementary files; e.g. C:\Users\Public\Optitex\Optitex 21. The default value should be set when the PDS application is launched for the first time.

The following is a list of PDS variables available for template definition.

Variable Name

Description

FileName

Style File Name (including path)

Name

Style Name

NumOfSizes

Total number of sizes in the file

NumOfPieces

Total number of pieces in the file

TotalNumOfNotches

Total number of notches in style file

Sizes

The list of sizes containing size data

SizeName

The name of the current size

SizeArea

The total area of all pieces belonging to the current size

SizePerimeter

The total perimeter of all pieces belonging to the current size

Pieces

The list of pieces containing piece data

PieceName

The name of the piece

PieceNumOfInstances

The quantity of piece instances

PieceTotalArea

The area of the piece per all sized

PieceTotalPerimeter

The perimeter of the piece per all sizes

PieceMaterial

The material assigned to the piece

PieceCode

The code assigned to the piece

PieceDescription

The description assigned to the piece

PieceGradingPoints

The number of grading points in the current piece

PieceNumOfSizes

Number of sizes where the current piece is available

PieceSizes

The list of sizes containing piece data per sizes

PieceSizeName

The name of the size available for the current piece

PieceSizeArea

The area of the current piece graded to the current size

PieceSizePerimeter

The perimeter of the current piece graded to the current size

PieceSizeXDimension

The X dimension of the current piece graded to the current size

PieceSizeYDimension

The Y dimension of the current piece graded to the current size

PieceNotches

List of all notches available in the current piece

PieceNotchType

The type of the notch

PieceNotchCommand

The command (Draw or Cut) available for the current notch

PieceNothesNumber

The quantity of notches

PieceNotchDepth

The depth of the notch

PieceNotchCutLength

The cutting length of the notch

PieceButtons

The list of buttons available for the piece

PieceButtonType

The type of the button

PieceButtonRadius

The radius of the button

PieceButtonsNumber

The quantity of buttons of this type / radius

PieceButtonCutLength

The cutting length of the button

Variable Name

Description

PieceCircles

The list of circles available for the piece

PieceCircleCommand

The command (Draw or Cut) available for the current circle

PieceCircleRadius

The radius of the circle

PieceCircleCutLength

The cutting length of circles

PieceContours

The list of piece contours

PieceContourCommand

The command (Draw or Cut) available for the current contour

NumOfPieceContours

The quantity of piece contours of this type

PieceContourCutLength

The cutting length of the contour

PieceInternals

The list of internals available for the piece

PieceInternalCommand

The command (Draw or Cut) available for the current internal

PieceInternalCutLength

The cutting length of the internal

PiecePair

Pair status of piece

PieceOrientation

Piece orientation

PieceBuffer

Buffer values assigned to the piece

PieceBufferType

Buffer type

PieceOpposite

Opposite option

PieceRotation

Allowed piece rotation option

PieceMaxTilt

Maximum allowed tilt

PieceFoldAllowed

Status of allowed folding option

PieceQuality

The piece quality

PieceShrinkX

The X shrinkage of the piece

PieceShrinkY

The Y shrinkage of the piece

Internals

 

InternalCommand

The command (Draw or Cut) available for the current internal

InternalCutLength

The cutting length of the internal

Notches

 

NotchType

The type of the notch

NotchCommand

The command (Draw or Cut) available for the current notch

NumOfNotches

The quantity of notches

StyleSets

The list of style sets available in the current style

SSetName

The name of the style set

SSetDescription

The description of the style set

SSetsPieces

The list of pieces assigned for the current style set

SSPieceName

Piece name

SSPieceCode

Piece Code

SSPieceDescription

Piece Description

SSPieceMaterial

Piece Material

SSPieceQuantity

Number of pieces

SSPiecePair

Pair status of piece

SSPieceOrientation

Piece orientation

SSPieceBuffer

Buffer values assigned to the piece

SSPieceBufferType

Buffer type

SSPieceOposite

Opposite option

SSPieceRotation

Allowed piece rotation option

SSPieceMaxTilt

Maximum allowed tilt

SSPieceFoldAllowed

Status of allowed folding option

SSPieceQuality

The piece quality

SSPieceArea

The area of the piece per base size

SSPiecePerimeter

The perimeter of the piece per base size

Variable Name

Description

SSPieceBaseline

Piece baseline

SSPieceShrinkX

The X shrinkage of the piece

SSPieceShrinkY

The Y shrinkage of the piece

Materials

The list of materials used within the style

MaterialName

The name of material

MaterialPerimeter

Perimeter of all pieces of the current material per base size

MaterialArea

Area of all pieces of current material per base size

MaterialPiecesNum

Number of pieces of current material

UnitlsLength

Length units used for the style

UnitsArea

Area units used for the style

XMLHeader

XML header of the style file