What is an RPL file?
The RPL (Report Page Layout) stream format is an internal binary format used by MS SQL Server Reporting Services when contacting with viewer controls to reduce some of the rendering work from the server to the client viewer control. Developrers can create custom report designers by using RPL, that will generate RPL as well as custom report renderers that process and display the RPL file to display reports.
An RPL stream includes stream structure, report structure, report properties, and enumerations. Every structure include the following:
A definition of the structure.
The Augmented Backus-Naur Form (ABNF) grammar for the structure.
A bit diagram of the structure.
Definitions of all fields contained within the structure.
Here are the brief notes about some of the RPL Structures:
The stream structure consists of a series of records. A record contains zero or more structured fields that contain the report layout.
The RPL stream must have just one Report record and the stream must be a series of binary records that keep the report hierarchy.
The record is a basic building block used to keep the information about a report. A record consists of a varying-length sequence of bytes. A record consists of two components:
- A record type
- The record data that is specific to that record type. The record type is one byte that defines what type of information is specified by the record and how the structure of the record data concerning to the record is ordered and structured. The record value is dependent on the type of data that is particular to that record.
Simple Data Type Structures
The following table defines the data types in an RPL stream.
|Char||Represents a 16-bit (2-byte) numeric (ordinal) value.|
|Byte||Represents a 8-bit (1-byte) unsigned integer.|
|Int16||Represents a 16-bit (2-byte) signed integer.|
|Single||Represents a 32-bit (4-byte) single-precision floating point value.|
|Decimal||Represents a 128-bit (16-byte) data type.|
|DateTime||Represents a 64-bit (8-byte) encoding of a date and time value.|
|Int64||Represents a 64-bit (8-byte) signed integer.|
|Int32||Represents a 32-bit (4-byte) signed integer.|
|Float||Represents a 32-bit (4-byte) single-precision floating point value.|
|Boolean||Represents an 8-bit (1-byte) logical Boolean type value. The valid values are true (1) and false (0).|
|Long||Represents a 64-bit (8-byte) signed integer.|
|String||All String values within the protocol MUST be UNICODE UTF-16. By default, all String values start with an integer that defines the length of the String. String values are represented in the protocol as an array of bytes; the number of bytes MUST be equal to the number of characters in the String multiplied by two.|
The report structures include the definitions and sizes of their relevant structures and elements.
Following list specifies the report structures:
- Report Properties
- Offset Array Element
- Page Content
- Page properties
- Page Layout
- Simple Section
- Mixed Section
- Section Properties
- Body Area Element
- Page Header Element
- Page Footer Element
- Body Element
- Element Properties
- Shared Element Properties
- Use Shared Element Properties
Following is the list of properties that can be used in an RPL Stream:
- ConsumeContainerWhiteSpace (RPL 10.6)
- PageName (RPL 10.6)
- PrintBetweenSections (RPL 10.4)
Following list shows the enumerations that can be used in the RPL stream: