ZebraPrinterUtilities 2.3h1 :
- aggiunta gestione eccezione per stampante non presente.
This commit is contained in:
+4
-1
@@ -34,7 +34,7 @@ Class ZebraPrinter
|
||||
Else
|
||||
m_sDataRoot = sb.ToString
|
||||
End If
|
||||
m_FileLog = m_sDataRoot & "\ZebraPrinterUtilityLog.txt"
|
||||
m_FileLog = m_sDataRoot & "\Temp\ZebraPrinterUtilityLog.txt"
|
||||
If Not File.Exists(m_FileLog) Then
|
||||
Try
|
||||
File.Create(m_FileLog).Close()
|
||||
@@ -66,6 +66,9 @@ Class ZebraPrinter
|
||||
Catch ex As ConnectionException
|
||||
EmitLog("Printer connection error: " & ex.Message)
|
||||
Return False
|
||||
Catch
|
||||
EmitLog("Printer not found error")
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user