sendungsdet, etc.
This commit is contained in:
@@ -4990,15 +4990,22 @@ Public Class frmSendungsdetailsNEU
|
|||||||
Try
|
Try
|
||||||
Dim files As New List(Of String) '
|
Dim files As New List(Of String) '
|
||||||
Dim outputFile As String = VERAG_PROG_ALLGEMEIN.DATENVERVER_OPTIONS.getTMPPath("Merge.pdf", ".pdf", True,, "Merge") ' "result.pdf"
|
Dim outputFile As String = VERAG_PROG_ALLGEMEIN.DATENVERVER_OPTIONS.getTMPPath("Merge.pdf", ".pdf", True,, "Merge") ' "result.pdf"
|
||||||
|
Dim counter As Integer = 0
|
||||||
|
|
||||||
|
|
||||||
For Each r As DataGridViewRow In dgvAnhang.SelectedRows
|
For Each r As DataGridViewRow In dgvAnhang.SelectedRows
|
||||||
|
|
||||||
If r.Cells("anh_Typ").Value.ToString.ToLower = "pdf" Then files.Add(VERAG_PROG_ALLGEMEIN.cDATENSERVER.GET_PDFPath_BY_DocID(r.Cells("anh_docId").Value))
|
If r.Cells("anh_Typ").Value.ToString.ToLower = "pdf" Then
|
||||||
|
files.Add(VERAG_PROG_ALLGEMEIN.cDATENSERVER.GET_PDFPath_BY_DocID(r.Cells("anh_docId").Value))
|
||||||
|
counter += 1
|
||||||
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
VERAG_PROG_ALLGEMEIN.cFormularManager.mergePDFs(files, outputFile)
|
VERAG_PROG_ALLGEMEIN.cFormularManager.mergePDFs(files, outputFile)
|
||||||
|
|
||||||
|
If outputFile <> "" AndAlso counter > 0 Then
|
||||||
Process.Start(outputFile)
|
Process.Start(outputFile)
|
||||||
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||||
|
|||||||
Reference in New Issue
Block a user