This commit is contained in:
SchreiberM 2020-01-29 11:00:33 +01:00
parent 97b9e938fd
commit 304560f2f1
3 changed files with 8 additions and 8 deletions

View File

@ -478,7 +478,7 @@ Public Class DocumentViewer
heightInches = GdViewer.PageHeight / GdViewer.VerticalResolution heightInches = GdViewer.PageHeight / GdViewer.VerticalResolution
End If End If
Me.ToolStripStatusLabel1.Text = "Type: " + GetDocumentTypeLabel() + " - " + Me.infoLabel.Text = "Type: " + GetDocumentTypeLabel() + " - " +
"Pagesize (zoll): " + Trim(Str(Math.Round(widthInches, 2))) + " × " + Trim(Str(Math.Round(heightInches, 2))) + " - " + "Pagesize (zoll): " + Trim(Str(Math.Round(widthInches, 2))) + " × " + Trim(Str(Math.Round(heightInches, 2))) + " - " +
"Pagesize (pixel): " + Trim(Str(GdViewer.PageWidth)) + " × " + Trim(Str(GdViewer.PageHeight)) + " - " + "Pagesize (pixel): " + Trim(Str(GdViewer.PageWidth)) + " × " + Trim(Str(GdViewer.PageHeight)) + " - " +
"Horizontal resolution: " + Trim(Str(Math.Round(GdViewer.HorizontalResolution, 2))) + " DPI - " + "Horizontal resolution: " + Trim(Str(Math.Round(GdViewer.HorizontalResolution, 2))) + " DPI - " +

View File

@ -51,20 +51,20 @@ Partial Class Form1
' '
'Button2 'Button2
' '
Me.Button2.Location = New System.Drawing.Point(711, 9) Me.Button2.Location = New System.Drawing.Point(12, 38)
Me.Button2.Name = "Button2" Me.Button2.Name = "Button2"
Me.Button2.Size = New System.Drawing.Size(77, 23) Me.Button2.Size = New System.Drawing.Size(637, 23)
Me.Button2.TabIndex = 2 Me.Button2.TabIndex = 2
Me.Button2.Text = "Load Path" Me.Button2.Text = "Load Form3 which loads Form4"
Me.Button2.UseVisualStyleBackColor = True Me.Button2.UseVisualStyleBackColor = True
' '
'Button3 'Button3
' '
Me.Button3.Location = New System.Drawing.Point(711, 38) Me.Button3.Location = New System.Drawing.Point(12, 67)
Me.Button3.Name = "Button3" Me.Button3.Name = "Button3"
Me.Button3.Size = New System.Drawing.Size(77, 23) Me.Button3.Size = New System.Drawing.Size(637, 23)
Me.Button3.TabIndex = 2 Me.Button3.TabIndex = 2
Me.Button3.Text = "Load Path" Me.Button3.Text = "Load Form4"
Me.Button3.UseVisualStyleBackColor = True Me.Button3.UseVisualStyleBackColor = True
' '
'Form1 'Form1

View File

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