Search
Report Class
Remarks See Also
 





Provides methods to generate, preview and print reports of Schedule objects.

Namespace: MindFusion.Scheduling.Reporting
Assembly: MindFusion.Scheduling.Reporting

 Syntax

C#  Copy Code

public class Report

Visual Basic  Copy Code

Public Class Report

 Remarks

For more information on how to create, print and export reports, check Creating and Printing Reports.

 Note

The Excel export relies on the Ionic.Zip library, which is based on JZlib. The following copyright noticecopyright noticeReport is used.

 Example

The following example illustrates how to create a simple report and print out the headers and start and end times of the items contained in a schedule. The example assumes that the variable theSchedule references an existing Schedule object.

C#  Copy Code

Report report = new Report();

ReportColumn column = null;

// Create the column representing the item header
column = report.CreateColumn();
column.Property = "HeaderText";
column.Width = 100;
report.Columns.Add(column);

// Create the column representing the item start time
column = report.CreateColumn();
column.Property = "StartTime";
column.Width = 50;
report.Columns.Add(column);

// Create the column representing the item end time
column = report.CreateColumn();
column.Property = "EndTime";
column.Width = 50;
report.Columns.Add(column);

report.Schedule = theSchedule;
report.Preview(DateTime.MinValue, DateTime.MaxValue);

Visual Basic  Copy Code

Dim report as New Report()

Dim column As ReportColumn = Nothing

' Create the column representing the item header
column = report.CreateColumn()
column.Property = "HeaderText"
column.Width = 100
report.Columns.Add(column)

' Create the column representing the item start time
column = report.CreateColumn()
column.Property = "StartTime"
column.Width = 50
report.Columns.Add(column)

' Create the column representing the item end time
column = report.CreateColumn()
column.Property = "EndTime"
column.Width = 50
report.Columns.Add(column)

report.Schedule = theSchedule
report.Preview(DateTime.MinValue, DateTime.MaxValue)

 Inheritance Hierarchy

System.Object
    MindFusion.Scheduling.Reporting.Report

 See Also