Beispiel #1
0
 /// <summary>
 /// 设计报表
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void tsmDesginReport_Click(object sender, EventArgs e)
 {
     if (tsmChooseReport.HasDropDownItems)
     {
         report = new FastReport.Report();
         if (!report.IsDesigning)
         {
             GetData(tsmChooseDetail[iDefaultChecked].Name);
             report.Load(new MemoryStream(bt));
             RegReportData();
         }
         frmReportDesign rp = new frmReportDesign(report, Convert.ToInt32(tsmChooseDetail[iDefaultChecked].Name));
         rp.ReportGUID = rpGUID;
         rp.ShowDialog();
         report.Dispose();
         //刷新菜单
         CreateMenu();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 新增报表
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void tsmAddReport_Click(object sender, EventArgs e)
 {
     report = new FastReport.Report();
     RegReportData();
     frmReportDesign rp = new frmReportDesign(report,0);
     rp.ReportGUID = rpGUID;
     rp.ShowDialog();
     report.Dispose();
     //ClearListData();
     CreateMenu();
 }