Ms Änderungen FileCopy

This commit is contained in:
2024-03-28 11:26:32 +01:00
parent 56eb385312
commit c14ed86181
10 changed files with 336 additions and 113 deletions

View File

@@ -4,6 +4,7 @@ Imports EnvelopeGenerator.Common
Imports System.Data.SqlClient
Imports DevExpress.DocumentView
Imports System.Transactions
Imports System.IO
Public MustInherit Class BaseController
Inherits BaseClass
@@ -143,6 +144,8 @@ Public MustInherit Class BaseController
If IO.File.Exists(pDocument.Filepath) Then
IO.File.Delete(pDocument.Filepath)
End If
Dim oFolder As String = Path.GetDirectoryName(pDocument.Filepath)
Directory.Delete(oFolder)
Return True
Catch ex As Exception