public static void Print(string reportpath, Dictionary<string, string> parameters, DataTable dtGrid)
 {
     _Report = new GridppReport();
     _Report.LoadFromFile(AppGlobal.AppRootPath + reportpath);
     FillParameterToReport(_Report, parameters);
     _dataS = dtGrid;
     _Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(_Report_FetchRecord);
     _Report.Print(false);
 }
 public static void Print(string reportpath, Dictionary <string, string> parameters, DataTable dtGrid)
 {
     _Report = new GridppReport();
     _Report.LoadFromFile(AppGlobal.AppRootPath + reportpath);
     FillParameterToReport(_Report, parameters);
     _dataS = dtGrid;
     _Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(_Report_FetchRecord);
     _Report.Print(false);
 }
Example #3
0
 private void Print(bool IsPrint, string ReportName)
 {
     Report = new grproLib.GridppReport();
     Report.LoadFromFile(Constant.ApplicationDirectory + "\\report\\" + ReportName + ".grf");
     Report.ParameterByName("制表人").AsString  = _currentUser.Name;
     Report.ParameterByName("医院名称").AsString = HIS.SYSTEM.BussinessLogicLayer.Classes.BaseData.WorkName;
     Report.FetchRecord += new grproLib._IGridppReportEvents_FetchRecordEventHandler(Report_FetchRecord);
     if (IsPrint)
     {
         Report.Print(false);
     }
     else
     {
         Report.PrintPreview(false);
     }
 }