TimasAPI, Ueberstundenprotokollierung, etc.
This commit is contained in:
@@ -1409,7 +1409,10 @@ Public Class cFormularManager
|
||||
Using webClient As New Net.WebClient()
|
||||
Dim data() As Byte = webClient.DownloadData(URL)
|
||||
Using stream As New MemoryStream(data)
|
||||
Dim doc As Spire.Pdf.PdfDocument = New Spire.Pdf.PdfDocument(stream)
|
||||
|
||||
Dim doc As Spire.Pdf.PdfDocument = New Spire.Pdf.PdfDocument
|
||||
doc.LoadFromStream(stream)
|
||||
|
||||
If doc IsNot Nothing Then
|
||||
doc.PageSettings.Size = Spire.Pdf.PdfPageSize.A4
|
||||
doc.SaveToFile(targetPath)
|
||||
@@ -1422,7 +1425,7 @@ Public Class cFormularManager
|
||||
|
||||
Return targetPath
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message & ex.StackTrace)
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
Return ""
|
||||
End Function
|
||||
|
||||
Reference in New Issue
Block a user