The FileName and ReportName properties can be set at design time.
The following kinds of documents can be shown by the C1ReportViewer control:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1ReportViewer1.FileName = "~/CommonTasks.xml" C1ReportViewer1.ReportName = "Greenbar Report" |
To write code in C#
C# |
Copy Code
|
---|---|
C1ReportViewer1.FileName = "~/CommonTasks.xml"; C1ReportViewer1.ReportName = "Greenbar Report"; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1ReportViewer1.FileName = "~/MyDocument.c1dx" |
To write code in C#
C# |
Copy Code
|
---|---|
C1ReportViewer1.FileName = "~/MyDocument.c1dx"; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1ReportViewer1.FileName = "~/MyRdlReport.rdl" |
To write code in C#
C# |
Copy Code
|
---|---|
C1ReportViewer1.FileName = "~/MyRdlReport.rdl"; |