public void Execute()
 {
     if (DataSource != null)
     {
         ReportComposer composer = new ReportComposer(_template);
         composer.InitData += new ReportComposerEventHandler(OnInitData);
         composer.ReadData += new ReportComposerEventHandler(OnReadData);
         composer.Execute();
         _document = composer.Document;
     }
     else
     {
         _document = null;
     }
 }
 public void Execute()
 {
     if (DataSource != null)
     {
         ReportComposer composer = new ReportComposer(_template);
         composer.InitData += new ReportComposerEventHandler(OnInitData);
         composer.ReadData += new ReportComposerEventHandler(OnReadData);
         composer.Execute();
         _document = composer.Document;
     }
     else
     {
         _document = null;
     }
 }