public int AddPrintJob(LabelGeneratorLib.PrinterArea eArea, LabelGeneratorLib.LabelTypes eLabelType, List <string> sColumns) { //LabelGen objClass = (LabelGen)Session["LabelGen"]; //return objClass.AddPrintJob(eArea, eLabelType, sColumns); return(_labelGen.AddPrintJob(eArea, eLabelType, sColumns)); }
//Session["LabelGen"] = _labelGen; public bool Print(LabelGeneratorLib.PrinterArea eArea, LabelGeneratorLib.LabelTypes eLabelType, List <string> sColumns, string sTemplate, int nQty, int nStartPos = 0) { LabelGen _labelGen = new LabelGen(); int nJob = _labelGen.AddPrintJob(eArea, eLabelType, sColumns); _labelGen.AddDataRow(nJob, sTemplate, nQty, nStartPos); _labelGen.PrintLabels(); return(true); }