add gdpicture libs, close viewer with done
This commit is contained in:
@@ -1902,8 +1902,7 @@ Public Class frmIndex
|
||||
Private Sub frmIndex_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
|
||||
Try
|
||||
' This prevents the thread issue when the form containing the viewer is opened via ShowDialog.
|
||||
DocumentViewer1.CloseFile()
|
||||
DocumentViewer1.Dispose()
|
||||
DocumentViewer1.Done()
|
||||
|
||||
ClassWindowLocation.SaveFormLocationSize(Me)
|
||||
My.Settings.Save()
|
||||
@@ -2600,7 +2599,7 @@ Public Class frmIndex
|
||||
If Name_Generieren() = True Then
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" ...Name_Generieren durchlaufen", False)
|
||||
'Dokumentenviewer ausblenden um keinen Zugriffsfehler zu produzieren
|
||||
DocumentViewer1.CloseFile()
|
||||
DocumentViewer1.Done()
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" ...Viewer geschlossen", False)
|
||||
'Die Datei verschieben
|
||||
If Move_File2_Target() = True Then
|
||||
@@ -2614,7 +2613,7 @@ Public Class frmIndex
|
||||
ElseIf DropType = "|ATTMNTEXTRACTED|" Or DropType = "|OUTLOOK_ATTACHMENT|" Then
|
||||
'Die temporäre Datei löschen
|
||||
If CURRENT_WORKFILE.EndsWith("pdf") Then
|
||||
DocumentViewer1.CloseFile()
|
||||
DocumentViewer1.Done()
|
||||
End If
|
||||
|
||||
DeleteFile()
|
||||
|
||||
Reference in New Issue
Block a user