Import support for RDL files is included in C1PrintDocument. Report Definition Language (RDL) import allows reading RDL report definitions into an instance of the C1PrintDocument component. The resulting document is a data-bound representation of the imported report. RDL support in C1PrintDocument is based on the Microsoft RDL Specification for SQL Server 2008.
You can use the following code to import an RDL file:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim doc As New C1PrintDocument() doc.ImportRdl("myReport.rdl") doc.Generate() |
To write code in C#
C# |
Copy Code
|
---|---|
C1PrintDocument doc = new C1PrintDocument(); doc.ImportRdl("myReport.rdl"); doc.Generate(); |
Note that not all RDL properties are currently supported, but support will be added in future releases. For more information, see the RDL Import Limitations topic.