Bugfix Öffnen von Msg in Anhänge (Sendungsdetails).
This commit is contained in:
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("4.0.3.8")>
|
<Assembly: AssemblyVersion("4.0.3.9")>
|
||||||
<Assembly: AssemblyFileVersion("4.0.3.8")>
|
<Assembly: AssemblyFileVersion("4.0.3.9")>
|
||||||
|
|||||||
@@ -4154,13 +4154,18 @@ Public Class frmSendungsdetailsNEU
|
|||||||
|
|
||||||
|
|
||||||
Dim docPath = VERAG_PROG_ALLGEMEIN.cDATENSERVER.GET_PDFPath_BY_DocID(dgvAnhang.SelectedRows(0).Cells("anh_docId").Value)
|
Dim docPath = VERAG_PROG_ALLGEMEIN.cDATENSERVER.GET_PDFPath_BY_DocID(dgvAnhang.SelectedRows(0).Cells("anh_docId").Value)
|
||||||
If Not IO.File.Exists(docPath) Then
|
If Not File.Exists(docPath) Then
|
||||||
MsgBox("Die Datei existiert nicht!")
|
MsgBox("Die Datei existiert nicht!")
|
||||||
Else
|
Else
|
||||||
If docPath.ToString.ToLower.EndsWith(".msg") Then ' MSG - Mails --> lokale Kopie, sonst Fehler (bereits von Benutzer soUndSo geöffnet)
|
If docPath.ToString.ToLower.EndsWith(".msg") Then ' MSG - Mails --> lokale Kopie, sonst Fehler (bereits von Benutzer soUndSo geöffnet)
|
||||||
Dim docPathTMP = VERAG_PROG_ALLGEMEIN.cFormularManager.getTMPPath_MSG()
|
Try
|
||||||
System.IO.File.Copy(docPath, docPathTMP)
|
Dim docPathTMP = VERAG_PROG_ALLGEMEIN.cFormularManager.getTMPPath_MSG()
|
||||||
Process.Start(docPathTMP)
|
File.Copy(docPath, docPathTMP)
|
||||||
|
Process.Start(docPathTMP)
|
||||||
|
Catch ex As Exception
|
||||||
|
'wenn fehler, soll versucht werden, das oríginal zu öffnen.
|
||||||
|
Process.Start(docPath)
|
||||||
|
End Try
|
||||||
Else
|
Else
|
||||||
Process.Start(docPath)
|
Process.Start(docPath)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -606,9 +606,13 @@ Public Class usrcntlAktDetailsATILLANeu
|
|||||||
MsgBox("Die Datei existiert nicht!")
|
MsgBox("Die Datei existiert nicht!")
|
||||||
Else
|
Else
|
||||||
If docPath.ToString.ToLower.EndsWith(".msg") Then ' MSG - Mails --> lokale Kopie, sonst Fehler (bereits von Benutzer soUndSo geöffnet)
|
If docPath.ToString.ToLower.EndsWith(".msg") Then ' MSG - Mails --> lokale Kopie, sonst Fehler (bereits von Benutzer soUndSo geöffnet)
|
||||||
Dim docPathTMP = VERAG_PROG_ALLGEMEIN.cFormularManager.getTMPPath_MSG()
|
Try
|
||||||
File.Copy(docPath, docPathTMP)
|
Dim docPathTMP = VERAG_PROG_ALLGEMEIN.cFormularManager.getTMPPath_MSG()
|
||||||
Process.Start(docPathTMP)
|
File.Copy(docPath, docPathTMP)
|
||||||
|
Process.Start(docPathTMP)
|
||||||
|
Catch ex As Exception
|
||||||
|
Process.Start(docPath)
|
||||||
|
End Try
|
||||||
Else
|
Else
|
||||||
Process.Start(docPath)
|
Process.Start(docPath)
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user