Assembly: C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)
Syntax
C# |
---|
public class ReportSource |
Visual Basic (Declaration) |
---|
Public Class ReportSource |
Remarks
The location of the report definition is defined by two elements: the name of the Xml file that contains the report (FileName) and the report name (ReportName).
These two elements are needed because report definition files may contain many reports.
At design time, you can set both properties using a designer that lets you pick the file and then select the report from a list. At run time, you can set these properties using code.
Note that the report definition is not persisted as part of the control's ViewState, only its location. Whenever the page is loaded, the report definition is read from the file.
If you want to customize the report at run time, using the C1Report object model, you should write a routine that applies the changes and call it from the page's Load event.
Usually, the FileName property is set to an absolute path on the server. If you set it to a file name without a path, C1WebReport will look for the report definition on the path that contains the page.