Update GD Picture
This commit is contained in:
@@ -11,17 +11,17 @@ Public Class frmDocView
|
||||
If String.IsNullOrEmpty(TextBox1.Text) Then
|
||||
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
|
||||
TextBox1.Text = OpenFileDialog1.FileName
|
||||
DocumentViewer1.LoadFile(TextBox1.Text)
|
||||
MyDocumentViewer.LoadFile(TextBox1.Text)
|
||||
End If
|
||||
Else
|
||||
DocumentViewer1.LoadFile(TextBox1.Text)
|
||||
MyDocumentViewer.LoadFile(TextBox1.Text)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub frmDocView_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||
LogConfig = New LogConfig(LogConfig.PathType.Temp)
|
||||
DocumentViewer1.Init(LogConfig, GDPICTURE_KEY, New DigitalData.Controls.DocumentViewer.DocumentViewer.ToolbarSettings() With {
|
||||
MyDocumentViewer.Init(LogConfig, GDPICTURE_KEY, New DigitalData.Controls.DocumentViewer.DocumentViewer.ToolbarSettings() With {
|
||||
.ShowPrintButton = False,
|
||||
.ShowRotateButton = False,
|
||||
.ShowFlipButton = False,
|
||||
@@ -30,16 +30,16 @@ Public Class frmDocView
|
||||
End Sub
|
||||
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
DocumentViewer1.Done()
|
||||
MyDocumentViewer.Done()
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
|
||||
If DocumentViewer1.AddAnnotation("Some Text") Then
|
||||
If MyDocumentViewer.AddAnnotation("Some Text") Then
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
|
||||
DocumentViewer1.Save()
|
||||
MyDocumentViewer.Save()
|
||||
End Sub
|
||||
|
||||
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
|
||||
|
||||
Reference in New Issue
Block a user