MS DocumentViewer
This commit is contained in:
@@ -489,6 +489,7 @@ Public Class DocumentViewer
|
|||||||
End Sub
|
End Sub
|
||||||
Private Function DoLoadFile(FilePath As String) As Boolean
|
Private Function DoLoadFile(FilePath As String) As Boolean
|
||||||
Try
|
Try
|
||||||
|
_logger.Debug($"Starting DoLoadFile with [{FilePath}] ...")
|
||||||
Dim oFileInfo = New FileInfo(FilePath)
|
Dim oFileInfo = New FileInfo(FilePath)
|
||||||
Dim oExtension As String = oFileInfo.Extension.ToUpper
|
Dim oExtension As String = oFileInfo.Extension.ToUpper
|
||||||
|
|
||||||
@@ -523,6 +524,7 @@ Public Class DocumentViewer
|
|||||||
SpreadsheetControl1.Dock = DockStyle.Fill
|
SpreadsheetControl1.Dock = DockStyle.Fill
|
||||||
|
|
||||||
Case Else
|
Case Else
|
||||||
|
_logger.Debug($"Loading GDViewer with extension [{oExtension}] ...")
|
||||||
GdViewer.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
|
GdViewer.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
|
||||||
GdViewer.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopCenter
|
GdViewer.DocumentAlignment = ViewerDocumentAlignment.DocumentAlignmentTopCenter
|
||||||
GdViewer.ForceTemporaryMode = True
|
GdViewer.ForceTemporaryMode = True
|
||||||
|
|||||||
@@ -207,9 +207,6 @@
|
|||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Deployment" />
|
<Reference Include="System.Deployment" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Formats.Asn1, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\System.Formats.Asn1.9.0.0\lib\net462\System.Formats.Asn1.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.IO.Compression" />
|
<Reference Include="System.IO.Compression" />
|
||||||
<Reference Include="System.IO.Packaging, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
<Reference Include="System.IO.Packaging, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\System.IO.Packaging.9.0.0\lib\net462\System.IO.Packaging.dll</HintPath>
|
<HintPath>..\packages\System.IO.Packaging.9.0.0\lib\net462\System.IO.Packaging.dll</HintPath>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Public Class EmailService
|
|||||||
Private _ConfigManager As ConfigManager(Of Config)
|
Private _ConfigManager As ConfigManager(Of Config)
|
||||||
Private _Config As Config
|
Private _Config As Config
|
||||||
|
|
||||||
Private _Firebird As Firebird
|
' Private _Firebird As Firebird
|
||||||
Private _MSSQL As MSSQLServer
|
Private _MSSQL As MSSQLServer
|
||||||
Private _MSSQL_Test As MSSQLServer
|
Private _MSSQL_Test As MSSQLServer
|
||||||
Private _Encryption As EncryptionLegacy
|
Private _Encryption As EncryptionLegacy
|
||||||
@@ -79,7 +79,7 @@ Public Class EmailService
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
_AnyDatabaseInitialized = _Firebird?._DBInitialized Or _MSSQL?.DBInitialized Or _MSSQL_Test?.DBInitialized
|
_AnyDatabaseInitialized = _MSSQL?.DBInitialized Or _MSSQL_Test?.DBInitialized
|
||||||
_TempFiles = New TempFiles(_LogConfig)
|
_TempFiles = New TempFiles(_LogConfig)
|
||||||
_TempFiles.Create()
|
_TempFiles.Create()
|
||||||
' === Initialize Email ===
|
' === Initialize Email ===
|
||||||
@@ -198,9 +198,9 @@ Public Class EmailService
|
|||||||
Dim oAccounts As New List(Of EmailAccount)
|
Dim oAccounts As New List(Of EmailAccount)
|
||||||
|
|
||||||
Select Case Database
|
Select Case Database
|
||||||
Case DatabaseType.Firebird
|
'Case DatabaseType.Firebird
|
||||||
oSQL = "SELECT * FROM TBEDM_EMAIL_ACCOUNT WHERE ACTIVE = True"
|
' oSQL = "SELECT * FROM TBEDM_EMAIL_ACCOUNT WHERE ACTIVE = True"
|
||||||
oEmailAccounts = _Firebird.GetDatatable(oSQL)
|
' oEmailAccounts = _Firebird.GetDatatable(oSQL)
|
||||||
Case DatabaseType.MSSQL
|
Case DatabaseType.MSSQL
|
||||||
oSQL = "SELECT * FROM TBDD_EMAIL_ACCOUNT WHERE ACTIVE = 1"
|
oSQL = "SELECT * FROM TBDD_EMAIL_ACCOUNT WHERE ACTIVE = 1"
|
||||||
oEmailAccounts = MSSQLInstance.GetDatatable(oSQL)
|
oEmailAccounts = MSSQLInstance.GetDatatable(oSQL)
|
||||||
@@ -292,9 +292,9 @@ Public Class EmailService
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Select Case Database
|
Select Case Database
|
||||||
Case DatabaseType.Firebird
|
'Case DatabaseType.Firebird
|
||||||
oSQL = "SELECT * FROM TBEDM_EMAIL_QUEUE WHERE EMAIL_SENT IS NULL and EMAIL_TO <> ''"
|
' oSQL = "SELECT * FROM TBEDM_EMAIL_QUEUE WHERE EMAIL_SENT IS NULL and EMAIL_TO <> ''"
|
||||||
oEmailQueue = _Firebird.GetDatatable(oSQL)
|
' oEmailQueue = _Firebird.GetDatatable(oSQL)
|
||||||
Case DatabaseType.MSSQL
|
Case DatabaseType.MSSQL
|
||||||
If My.Settings.MSSQL_SELECT <> String.Empty Then
|
If My.Settings.MSSQL_SELECT <> String.Empty Then
|
||||||
_Logger.Debug("My.Settings.MSSQL_SELECT will be used..")
|
_Logger.Debug("My.Settings.MSSQL_SELECT will be used..")
|
||||||
@@ -456,9 +456,9 @@ Public Class EmailService
|
|||||||
oSuccessfulSent.Add(oEmailTo)
|
oSuccessfulSent.Add(oEmailTo)
|
||||||
|
|
||||||
Select Case Database
|
Select Case Database
|
||||||
Case DatabaseType.Firebird
|
'Case DatabaseType.Firebird
|
||||||
oSQL = GetFirebirdUpdateString(oComment, oGuid)
|
' oSQL = GetFirebirdUpdateString(oComment, oGuid)
|
||||||
_Firebird.ExecuteNonQuery(oSQL)
|
' _Firebird.ExecuteNonQuery(oSQL)
|
||||||
Case DatabaseType.MSSQL
|
Case DatabaseType.MSSQL
|
||||||
oSQL = GetSQLUpdateString(oComment, oGuid)
|
oSQL = GetSQLUpdateString(oComment, oGuid)
|
||||||
MSSQLInstance.ExecuteNonQuery(oSQL)
|
MSSQLInstance.ExecuteNonQuery(oSQL)
|
||||||
|
|||||||
Reference in New Issue
Block a user