/// <summary>
/// NewReport - an Interface function from IPlugInHost
/// </summary>
/// <param name="name">Name to use for the Document</param>
/// <returns>Current report object in the designer</returns>
public object NewReport(string name)
{
try
{
this.ardMain.NewReport();
this.ardMain.Report.Document.Name = name;
return this.ardMain.Report;
}
catch(GrapeCity.ActiveReports.ReportException)
{
MessageBox.Show("Error occurred while creating new report", "Error in Diamond Reports");
return null;
}
}