Esempio n. 1
0
 /// <summary>
 /// 通用打印For PES
 /// </summary>
 /// <param name="parameters"></param>
 /// <param name="commonPrintModel"></param>
 /// <param name="printFuntionNameSpace"></param>
 /// <param name="dataFuntionNameSpace"></param>
 /// <param name="printName"></param>
 /// <param name="printCount"></param>
 /// <param name="XDeviation"></param>
 /// <param name="YDeviation"></param>
 public static void CommonStartPrintForPES(Dictionary <string, string> parameters, PrintFactoryModel commonPrintModel, string printFuntionNameSpace, string dataFuntionNameSpace, string printName, int printCount, int XDeviation, int YDeviation)
 {
     DeleteFilesByPath("TempImageConvertDirectory");
     ParsePrintTempletInforForPES(parameters, commonPrintModel, printFuntionNameSpace, dataFuntionNameSpace, XDeviation, YDeviation);
     if (commonPrintHelper == null)
     {
         commonPrintHelper = new CommonPrintHelper();
     }
     commonPrintHelper.StartPrint(commonPrintModel, printName, printCount);
 }
Esempio n. 2
0
 public static void CommonStartPrint(FrameworkElement element, PrintFactoryModel commonPrintModel, string printFuntionNameSpace, string dataFuntionNameSpace, string printName, int printCount, int XDeviation, int YDeviation)
 {
     DeleteFilesByPath("TempImageConvertDirectory");
     ParsePrintTempletInfo(element, commonPrintModel, printFuntionNameSpace, dataFuntionNameSpace, XDeviation, YDeviation);
     if (commonPrintHelper == null)
     {
         commonPrintHelper = new CommonPrintHelper();
     }
     commonPrintHelper.StartPrint(commonPrintModel, printName, printCount);
 }