Commit
This commit is contained in:
@@ -1171,23 +1171,6 @@ Public Class Windream2
|
||||
End Try
|
||||
Dim ExportFileIO = New WMOTOOLLib.WMFileIO ' CreateObject("WMOTOOLLib.WMFileIO") ' New WMOTOOLLib.WMFileIO
|
||||
_logger.Debug("ExportFileIO created...")
|
||||
' Stream Interface bereitstellen
|
||||
'Try
|
||||
' oWMObject.LockFor(WMObjectEditModeMoveReadOnly) 'WMObjectEditModeFileSystem)
|
||||
'Catch ex As Exception
|
||||
' If Not oWMObject.aLocked Then
|
||||
' Try
|
||||
' oWMObject.lock()
|
||||
' Catch ex1 As Exception
|
||||
' _logger.Warn($"{ex1.Message} Could not lock document - DocID: {DocId}")
|
||||
' Return False
|
||||
' End Try
|
||||
|
||||
' End If
|
||||
' '_logger.(ex)
|
||||
|
||||
'End Try
|
||||
|
||||
Dim oWMStream = oWMObject.OpenStream("BinaryObject", 1)
|
||||
'### VERSIONIERUNG ###
|
||||
Dim version As Integer = 2
|
||||
@@ -1204,10 +1187,9 @@ Public Class Windream2
|
||||
ExportFileIO.bstrOriginalFileName = tempFilename
|
||||
'Das eigentliche kopieren
|
||||
ExportFileIO.ExportOriginal(True)
|
||||
' close the windream file stream
|
||||
'close the windream file stream
|
||||
oWMStream.Close()
|
||||
_logger.Info($"WMFile DocID {DocId} has been exported to {tempFilename} ")
|
||||
|
||||
Return True
|
||||
Catch ex As Exception
|
||||
_logger.Error(ex)
|
||||
|
||||
Reference in New Issue
Block a user