aggiunto vario log x debug problema blocco stampa
This commit is contained in:
@@ -36,6 +36,7 @@ namespace XPS_data
|
||||
private Stream CreateStream(string name, string fileNameExtension, Encoding encoding, string mimeType, bool willSeek)
|
||||
{
|
||||
string filePath = SteamWare.SteamwareStrings.getFilePath(@"~\tmp\" + name + "." + fileNameExtension);
|
||||
if (memLayer.ML.CRI("_logLevel") > 6) logger.lg.scriviLog(string.Format("Creazione file EMF in {0}", filePath), tipoLog.INFO);
|
||||
Stream stream = new FileStream(filePath, FileMode.Create);
|
||||
m_streams.Add(stream);
|
||||
return stream;
|
||||
@@ -68,6 +69,7 @@ namespace XPS_data
|
||||
{
|
||||
string msg = String.Format("Can't find printer \"{0}\".", printerName);
|
||||
MessageBox.Show(msg, "Print Error");
|
||||
logger.lg.scriviLog("ERRORE IN check printDoc.PrinterSettings.IsValid", tipoLog.ERROR);
|
||||
return;
|
||||
}
|
||||
printDoc.PrintPage += new PrintPageEventHandler(PrintPage);
|
||||
@@ -110,6 +112,7 @@ namespace XPS_data
|
||||
private DataTable caricaDati(reportRichiesto tipoReport, string idxObj)
|
||||
{
|
||||
DataTable tab = new DataTable();
|
||||
if (memLayer.ML.CRI("_logLevel") > 6) logger.lg.scriviLog(string.Format("Richiesto tabella x report {0}", tipoReport), tipoLog.INFO);
|
||||
switch (tipoReport)
|
||||
{
|
||||
case reportRichiesto.Barcode:
|
||||
@@ -121,6 +124,7 @@ namespace XPS_data
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (memLayer.ML.CRI("_logLevel") > 6) logger.lg.scriviLog(string.Format("Effettuata lettura tabella x report {0}", tipoReport), tipoLog.INFO);
|
||||
return tab;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -166,9 +170,11 @@ namespace XPS_data
|
||||
report.SetParameters(rParam);
|
||||
// export in EMF
|
||||
Export(report, deviceInfoPar.xmlParam);
|
||||
if (memLayer.ML.CRI("_logLevel") > 6) logger.lg.scriviLog("Fine export EMF", tipoLog.INFO);
|
||||
m_currentPageIndex = 0;
|
||||
// stampo
|
||||
Print(printerName);
|
||||
if (memLayer.ML.CRI("_logLevel") > 6) logger.lg.scriviLog("Fine Stampa", tipoLog.INFO);
|
||||
// do dispose?
|
||||
Dispose();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user