To load an RDL file into the C1RdlReport component you can use the Load method. To remove an RDL file, you would use the Clear method. This method clears any RDL file previously loaded into the C1RdlReport control. The C1RdlReport component includes design-time options to load and clear an RDL file.
Complete the following steps:
The report will be loaded and if the C1RdlReport control is connected to a previewing control, such as C1PrintPreviewControl, the report will appear previewed in the previewing control at design time.
To load an RDL file into the C1RdlReport component you can use the Load method. Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1RdlReport1.Load("C:/Report.rdl") C1RdlReport1.Render() |
To write code in C#
C# |
Copy Code
|
---|---|
c1RdlReport1.Load(@"C:/Report.rdl"); c1RdlReport1.Render(); |
The report will be loaded and if the C1RdlReport control is connected to a previewing control, such as C1PrintPreviewControl, when you run the application, the report will appear in the previewing control.