private void OpenSubReportEvent(object sender, SubReportEventArgs e)
{
MDIChild mc = this.ActiveMdiChild as MDIChild;
if (mc == null)
return;
Uri file = new Uri(mc.Viewer.Folder);
if (e.SubReportName[0] == Path.DirectorySeparatorChar)
{
file = new Uri(file.LocalPath + e.SubReportName);
}
else
{
file = new Uri(file.LocalPath + Path.DirectorySeparatorChar + e.SubReportName + ".rdl");
}
CreateMDIChild(file, null, true);
}