DocumentViewer visible Viewer
This commit is contained in:
parent
1f136826eb
commit
66b40121c6
@ -473,6 +473,7 @@ Public Class DocumentViewer
|
|||||||
|
|
||||||
SpreadsheetControl1.Visible = False
|
SpreadsheetControl1.Visible = False
|
||||||
RichEditControl1.Visible = False
|
RichEditControl1.Visible = False
|
||||||
|
|
||||||
SpreadsheetControl1.Dock = DockStyle.None
|
SpreadsheetControl1.Dock = DockStyle.None
|
||||||
RichEditControl1.Dock = DockStyle.None
|
RichEditControl1.Dock = DockStyle.None
|
||||||
|
|
||||||
@ -485,11 +486,13 @@ Public Class DocumentViewer
|
|||||||
oRange.AutoFitColumns()
|
oRange.AutoFitColumns()
|
||||||
|
|
||||||
SpreadsheetControl1.Visible = True
|
SpreadsheetControl1.Visible = True
|
||||||
|
GdViewer.Visible = False
|
||||||
SpreadsheetControl1.Dock = DockStyle.Fill
|
SpreadsheetControl1.Dock = DockStyle.Fill
|
||||||
Case ".EML", ".DOC", ".DOCX", ".ODT", ".RTF", ".TXT"
|
Case ".EML", ".DOC", ".DOCX", ".ODT", ".RTF", ".TXT"
|
||||||
RichEditControl1.LoadDocument(FilePath, GetDocumentFormat(oExtension))
|
RichEditControl1.LoadDocument(FilePath, GetDocumentFormat(oExtension))
|
||||||
|
|
||||||
RichEditControl1.Visible = True
|
RichEditControl1.Visible = True
|
||||||
|
GdViewer.Visible = False
|
||||||
RichEditControl1.Dock = DockStyle.Fill
|
RichEditControl1.Dock = DockStyle.Fill
|
||||||
Case Else
|
Case Else
|
||||||
GdViewer.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
|
GdViewer.ZoomMode = ViewerZoomMode.ZoomModeWidthViewer
|
||||||
@ -499,9 +502,14 @@ Public Class DocumentViewer
|
|||||||
GdViewer.BackColor = Color.White
|
GdViewer.BackColor = Color.White
|
||||||
|
|
||||||
If GdViewer.DisplayFromFile(FilePath) <> GdPictureStatus.OK Then
|
If GdViewer.DisplayFromFile(FilePath) <> GdPictureStatus.OK Then
|
||||||
|
|
||||||
Dim oFileName = IO.Path.GetFileName(FilePath)
|
Dim oFileName = IO.Path.GetFileName(FilePath)
|
||||||
lbFileNotLoaded.Text = String.Format("Datei konnte nicht geladen werden:{0}{1}", vbCrLf, oFileName)
|
lbFileNotLoaded.Text = String.Format("Datei konnte nicht geladen werden:{0}{1}", vbCrLf, oFileName)
|
||||||
lbFileNotLoaded.Visible = True
|
lbFileNotLoaded.Visible = True
|
||||||
|
Else
|
||||||
|
If GdViewer.Visible = False Then
|
||||||
|
GdViewer.Visible = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
|
|||||||
@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.0.2.0")>
|
<Assembly: AssemblyVersion("2.1.0.0")>
|
||||||
<Assembly: AssemblyFileVersion("2.0.1.0")>
|
<Assembly: AssemblyFileVersion("2.1.0.0")>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user