protected void PrintReport(string arNr, string verNr, string format, string tablename, string keyfields, string constring) { Stuklijst report = new Stuklijst(arNr, verNr, tablename, keyfields, constring, rcORva); string path = printingdir + System.IO.Path.DirectorySeparatorChar + arNr + verNr + "_stk.pdf"; //string path = Path.GetTempFileName(); //path = path.Replace(".tmp",".pdf"); report.path = path; report.Print(); if (report.detailsRowsCount > 0) { string printerName = ""; if (format.Trim() == "") { format = "unknown"; } foreach (string str in formatPrinterArr) { string[] col = str.Split('@'); if (col[0].Trim().ToLower() == format.Trim().ToLower()) { printerName = col[1]; } } kobladPDFstring = kobladPDFstring + arNr + "_stk.pdf" + "@@" + report.pageCounter() + "@@" + format + "@@" + printerName + "@@@@"; jobCount += report.pageCounter(); } //Response.Redirect(path); }
protected void PrintDistributeReport(string arNr, string verNr, string tablename, string keyfields, string constring) { Stuklijst report = new Stuklijst(arNr, verNr, tablename, keyfields, constring, rcORva); string path = printingdir + System.IO.Path.DirectorySeparatorChar + arNr + verNr + "_stk.pdf"; report.path = path; report.Print(); string printerName = ""; kobladPDFstring = kobladPDFstring + arNr + "_stk.pdf" + "@@" + report.pageCounter() + "@@@@"; jobCount += report.pageCounter(); }