Gesamtsicherheiten, Streamreader in PDF schließen.
This commit is contained in:
@@ -6,7 +6,6 @@ Imports Spire.Pdf.Conversion.Compression
|
||||
Imports Spire.Pdf.Exporting
|
||||
Imports VERAG_PROG_ALLGEMEIN
|
||||
|
||||
|
||||
Public Class frmSendungAnhangImport
|
||||
|
||||
Public AvisoId As Integer
|
||||
@@ -128,7 +127,6 @@ Public Class frmSendungAnhangImport
|
||||
|
||||
Try
|
||||
|
||||
|
||||
'If PdfViewer IsNot Nothing AndAlso PdfViewer.IsDocumentLoaded Then
|
||||
' PdfViewer.CloseDocument()
|
||||
'End If
|
||||
@@ -142,13 +140,15 @@ Public Class frmSendungAnhangImport
|
||||
WebBrowser.Visible = (loc <> "")
|
||||
WebBrowser.Navigate(loc)
|
||||
Else
|
||||
|
||||
|
||||
WebBrowser.Visible = False
|
||||
PdfViewer.Visible = (loc <> "")
|
||||
|
||||
Dim data = File.ReadAllBytes(loc)
|
||||
Dim pdfStream = New MemoryStream(data)
|
||||
PdfViewer.LoadFromStream(pdfStream)
|
||||
pdfStream.Close()
|
||||
|
||||
|
||||
'NOT WORKING
|
||||
'PdfViewer.LoadFromFile(loc) NOT WORKING
|
||||
|
||||
Reference in New Issue
Block a user