Laufzettel, sendungsdetails
This commit is contained in:
@@ -448,7 +448,12 @@ Public Class frmLaufzettel
|
||||
End If
|
||||
|
||||
For Each p In paths
|
||||
If p <> "" Then
|
||||
Dim fileInfo As New IO.FileInfo(p)
|
||||
If Not fileInfo.Exists Then Continue For
|
||||
Mail.Attachments.Add(p, Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue, , "Gestellungsliste.pdf")
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
|
||||
@@ -508,7 +513,13 @@ Public Class frmLaufzettel
|
||||
Try
|
||||
|
||||
For Each p In paths
|
||||
If p <> "" Then
|
||||
If Not System.IO.Directory.Exists(p) Then Continue For
|
||||
Dim fileInfo As New IO.FileInfo(p)
|
||||
If Not fileInfo.Exists Then Continue For
|
||||
VERAG_PROG_ALLGEMEIN.cFormularManager.PrintViaSpirePDF({p}, cboPrinter.SelectedItem.ToString)
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
'If paths.Count = 1 Then '1 Gestellungsliste
|
||||
@@ -526,16 +537,18 @@ Public Class frmLaufzettel
|
||||
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox("Fehler beim erstellen der E-Mail:" & vbNewLine & ex.Message & ex.StackTrace)
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name,, )
|
||||
End Try
|
||||
|
||||
Else
|
||||
Dim path = SDL.FormularManagerNEU.LaufzettelZollDE(AvisoID, False,, digitalDruck)
|
||||
If path <> "" Then
|
||||
Dim fileInfo As New IO.FileInfo(path)
|
||||
If fileInfo.Exists Then
|
||||
'Process.Start(path)
|
||||
VERAG_PROG_ALLGEMEIN.cFormularManager.PrintViaSpirePDF({path}, cboPrinter.SelectedItem.ToString)
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
If cbxDokumenteDrucken.Checked Then
|
||||
|
||||
@@ -4958,7 +4958,8 @@ Public Class frmSendungsdetailsNEU
|
||||
|
||||
|
||||
For Each r As DataGridViewRow In dgvAnhang.SelectedRows
|
||||
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))
|
||||
Next
|
||||
VERAG_PROG_ALLGEMEIN.cFormularManager.mergePDFs(files, outputFile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user