fix export to folder
This commit is contained in:
parent
1abfb8dc31
commit
5055a19959
@ -222,7 +222,7 @@ Public Class ClassParamRefresh
|
||||
ElseIf oMode.StartsWith("PM.ButtonExport2FolderCaption") Then
|
||||
Dim oAfterReplace = oMode.Replace("PM.ButtonExport2FolderCaption=", "")
|
||||
ButtonExport2Folder_Caption = oAfterReplace
|
||||
ElseIf oMode.StartsWith("PM.ButtonExportMode") Then
|
||||
ElseIf oMode.StartsWith("PM.ButtonExport2Folder_Mode") Then
|
||||
Dim oAfterReplace = oMode.Replace("PM.ButtonExport2Folder_Mode=", "")
|
||||
ButtonExport2Folder_Mode = oAfterReplace
|
||||
ElseIf oMode.StartsWith("PM.ButtonExport2Folder_RootFolder") Then
|
||||
|
||||
@ -5657,14 +5657,20 @@ Public Class frmValidator
|
||||
Dim oConverter As New PDFConverter(LOGCONFIG)
|
||||
If oConverter.ConvertPDFADocumentToPDFDocument(WMDocPathWindows, oTempFullFilename) = False Then
|
||||
Logger.Warn("File [{0}] could not be converted to plain PDF!", WMDocPathWindows)
|
||||
oFile2Export = WMDocPathWindows
|
||||
Else
|
||||
oFile2Export = oTempPath
|
||||
End If
|
||||
|
||||
oFile2Export = oTempPath
|
||||
Else
|
||||
oFile2Export = WMDocPathWindows
|
||||
End If
|
||||
Else
|
||||
oFile2Export = WMDocPathWindows
|
||||
End If
|
||||
Else
|
||||
oFile2Export = WMDocPathWindows
|
||||
End If
|
||||
Logger.Info("Final export path is: [{0}]", oFile2Export)
|
||||
File.Copy(oFile2Export, oTargetPath)
|
||||
Logger.Info($"File {WMDocPathWindows} exported successfully!")
|
||||
oCount += 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user