fix viewer

This commit is contained in:
Jonathan Jenne 2020-01-29 11:06:02 +01:00
parent 97b9e938fd
commit 9eae2af89e
2 changed files with 2 additions and 3 deletions

View File

@ -195,7 +195,6 @@ Public Class DocumentViewer
Else
btnPrint.Visible = True
End If
End Sub
Private Sub UpdateMainUi()
Exit Sub
@ -478,7 +477,7 @@ Public Class DocumentViewer
heightInches = GdViewer.PageHeight / GdViewer.VerticalResolution
End If
Me.ToolStripStatusLabel1.Text = "Type: " + GetDocumentTypeLabel() + " - " +
Me.statusbar.Text = "Type: " + GetDocumentTypeLabel() + " - " +
"Pagesize (zoll): " + Trim(Str(Math.Round(widthInches, 2))) + " × " + Trim(Str(Math.Round(heightInches, 2))) + " - " +
"Pagesize (pixel): " + Trim(Str(GdViewer.PageWidth)) + " × " + Trim(Str(GdViewer.PageHeight)) + " - " +
"Horizontal resolution: " + Trim(Str(Math.Round(GdViewer.HorizontalResolution, 2))) + " DPI - " +

View File

@ -23,7 +23,7 @@ Public Class Form3
Logger.Info("DocumentViewer Form Loaded")
DocumentViewer1.Init(LogConfig, Key)
DocumentViewer1.LoadFile(FilePath)
DocumentViewer1.SetViewOnly(True)
DocumentViewer1.RightOnlyView(True)
Logger.Info("File Loaded")
End Sub