From 3089153decb1abac2e49becc2289d8443051db72 Mon Sep 17 00:00:00 2001 From: ms Date: Thu, 12 Jan 2023 09:30:06 +0100 Subject: [PATCH] TryCatch --- Main.vb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Main.vb b/Main.vb index c9538a3..27b6176 100644 --- a/Main.vb +++ b/Main.vb @@ -311,8 +311,12 @@ Public Class TSUserReporter Text = "PRINTER:" & Standarddrucker.Druckername & vbCrLf Text &= "BON:" & Bondrucker.Druckername End If + Try + System.IO.File.WriteAllText(PrintINI, Text) + Catch ex As Exception + MsgBox(ex.Message) + End Try - My.Computer.FileSystem.WriteAllText(PrintINI, Text, False) End Sub