Initial commit

This commit is contained in:
2020-10-21 10:43:18 +02:00
commit 56bd02798f
5848 changed files with 2659025 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Public Class Class1
End Class

View File

@@ -0,0 +1,13 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MySubMain>false</MySubMain>
<SingleInstance>false</SingleInstance>
<ShutdownMode>0</ShutdownMode>
<EnableVisualStyles>true</EnableVisualStyles>
<AuthenticationMode>0</AuthenticationMode>
<ApplicationType>1</ApplicationType>
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
</MyApplicationData>

View File

@@ -0,0 +1,35 @@
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' Allgemeine Informationen über eine Assembly werden über die folgenden
' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
' die mit einer Assembly verknüpft sind.
' Die Werte der Assemblyattribute überprüfen
<Assembly: AssemblyTitle("clspdf")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("clspdf")>
<Assembly: AssemblyCopyright("Copyright © 2015")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>
'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
<Assembly: Guid("c69414dd-06ef-4dad-8959-5eb3df8090d5")>
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
'
' Hauptversion
' Nebenversion
' Buildnummer
' Revision
'
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
' übernehmen, indem Sie "*" eingeben:
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>

View File

@@ -0,0 +1,62 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My.Resources
'This class was auto-generated by the StronglyTypedResourceBuilder
'class via a tool like ResGen or Visual Studio.
'To add or remove a member, edit your .ResX file then rerun ResGen
'with the /str option, or rebuild your VS project.
'''<summary>
''' A strongly-typed resource class, for looking up localized strings, etc.
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module Resources
Private resourceMan As Global.System.Resources.ResourceManager
Private resourceCulture As Global.System.Globalization.CultureInfo
'''<summary>
''' Returns the cached ResourceManager instance used by this class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("clspdf.Resources", GetType(Resources).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' Overrides the current thread's CurrentUICulture property for all
''' resource lookups using this strongly typed resource class.
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Friend Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set(ByVal value As Global.System.Globalization.CultureInfo)
resourceCulture = value
End Set
End Property
End Module
End Namespace

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,73 @@
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.ApplicationSettingsBase
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
#Region "My.Settings Auto-Save Functionality"
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared addedHandlerLockObject As New Object
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
If My.Application.SaveMySettingsOnExit Then
My.Settings.Save()
End If
End Sub
#End If
#End Region
Public Shared ReadOnly Property [Default]() As MySettings
Get
#If _MyType = "WindowsForms" Then
If Not addedHandler Then
SyncLock addedHandlerLockObject
If Not addedHandler Then
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
addedHandler = True
End If
End SyncLock
End If
#End If
Return defaultInstance
End Get
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
Friend ReadOnly Property Settings() As Global.clspdf.My.MySettings
Get
Return Global.clspdf.My.MySettings.Default
End Get
End Property
End Module
End Namespace

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C36A8422-393F-401D-B0F4-987C3079F0E5}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>clspdf</RootNamespace>
<AssemblyName>clspdf</AssemblyName>
<FileAlignment>512</FileAlignment>
<MyType>Windows</MyType>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<OutputPath>bin\Debug\</OutputPath>
<DocumentationFile>clspdf.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DocumentationFile>clspdf.xml</DocumentationFile>
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
</PropertyGroup>
<PropertyGroup>
<OptionExplicit>On</OptionExplicit>
</PropertyGroup>
<PropertyGroup>
<OptionCompare>Binary</OptionCompare>
</PropertyGroup>
<PropertyGroup>
<OptionStrict>Off</OptionStrict>
</PropertyGroup>
<PropertyGroup>
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<ItemGroup>
<Reference Include="PDFView">
<HintPath>..\..\..\__Barcode\PDFView\PDFView\bin\Debug\PDFView.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
</ItemGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Import Include="System.Linq" />
<Import Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.vb" />
<Compile Include="clspdfview.Designer.vb">
<DependentUpon>clspdfview.vb</DependentUpon>
</Compile>
<Compile Include="clspdfview.vb">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="My Project\AssemblyInfo.vb" />
<Compile Include="My Project\Application.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Application.myapp</DependentUpon>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="My Project\Settings.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="My Project\Resources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator>
<LastGenOutput>Application.Designer.vb</LastGenOutput>
</None>
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<CustomToolNamespace>My</CustomToolNamespace>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Service Include="{94E38DFF-614B-4CBD-B67C-F211BB35CE8B}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,29 @@
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class clspdfview
Inherits System.Windows.Forms.UserControl
'UserControl überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Wird vom Windows Form-Designer benötigt.
Private components As System.ComponentModel.IContainer
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
End Sub
End Class

View File

@@ -0,0 +1,342 @@
Imports System.ComponentModel
Public Enum PDFLayoutMode
DontCare ' Layout laut Dokumentvorgabe
SinglePage ' einzelne Seite
OneColumn ' fortlaufende Seite
TwoColumnLeft ' fortlaufende Doppelseiten , ungerade Seiten links
TwoColumnRight ' fortlaufende Doppelseiten , ungerade Seiten rechts
End Enum
Public Enum PDFPageMode
none ' Default-Ansicht
bookmarks ' Ansicht Lesezeichen
thumbs ' Ansicht Miniaturansicht
End Enum
Public Enum PDFViewMode
Fit ' Komplette Seite passt vollständig ins bereitgestellte Objekt
FitV ' Seitenhöhe (Vertikale) passt vollständig ins Objekt
FitH ' Seitenbreite (Horizontale) passt vollständig ins Objekt
FitB ' Dokumentrahmen ("Bounding Box") passt vollständig ins Objekt
FitBV ' Dokumentrahmenhöhe (Vertikale) passt vollständig ins Objekt
FITBH ' Dokumentrahmenbreite (Horizontale) passt vollständig ins Objekt
End Enum
Public Class clspdfview
Inherits UserControl
Private m_PDFHost As PDFHost
Private m_isInitialized As Boolean = False
Private m_ShowToolBar As Boolean = True
Private m_ShowScrollBars As Boolean = True
Private m_LayoutMode As PDFLayoutMode = PDFLayoutMode.DontCare
Private m_PageMode As PDFPageMode = PDFPageMode.none
Private m_ViewMode As PDFViewMode = PDFViewMode.Fit
#Region "Host Helper Class"
''' <summary>
''' Helper Class
''' </summary>
''' <remarks>
''' Diese private Klasse hostet das Acrobat ActiveX Control,
''' so dass es in das UserControl eingefügt werden kann.
''' </remarks>
Private Class PDFHost
Inherits AxHost
''' <summary>
''' Initialisiert den Host
''' </summary>
Public Sub New(ByVal sCLSID As String)
MyBase.New(sCLSID)
End Sub
''' <summary>
''' Gibt ein Objekt-Verweis auf das ActiveX Control zurück
''' </summary>
Public ReadOnly Property Viewer() As Object
Get
Try
Return Me.GetOcx
Catch ex As Exception
Return Nothing
End Try
End Get
End Property
''' <summary>
''' Gibt sämtliche von der Componente verwendeten Ressourcen frei.
''' </summary>
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If Me.Viewer IsNot Nothing Then
Me.Viewer.Dipose()
End If
MyBase.Dispose(disposing)
End Sub
End Class
#End Region
#Region "Initialisierungen"
''' <summary>
''' Initialisiert das UserControl
''' </summary>
Public Sub New()
MyBase.New()
Me.InitializeComponent()
End Sub
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If m_isInitialized Then
m_PDFHost.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
''' <summary>
''' Initialisiert die Komponente.
''' </summary>
''' <remarks>
''' Über Late Binding wird versucht, eine Instanz des Acrobat Readers
''' zu erzeugen. Auf dem Zielsystem muss der Reader in der Version 7
''' oder höher installiert sein. Ist dies nicht der Fall, wird eine
''' Fehlermeldung ausgegeben.
''' </remarks>
Private Sub InitializeComponent()
Dim t As Type = Type.GetTypeFromProgID("AcroPDF.PDF")
If t IsNot Nothing Then
m_PDFHost = New PDFHost(t.GUID.ToString)
DirectCast((m_PDFHost), ISupportInitialize).BeginInit()
SuspendLayout()
m_PDFHost.TabIndex = 0
m_PDFHost.Visible = True
m_PDFHost.Name = "PDFHost"
m_PDFHost.Dock = DockStyle.Fill
Controls.Add(m_PDFHost)
DirectCast((m_PDFHost), ISupportInitialize).EndInit()
ResumeLayout(False)
PerformLayout()
m_isInitialized = True
Else
m_isInitialized = False
MessageBox.Show("Der Acrobat Reader Version 7 oder höher konnte nicht initialisiert werden." _
& vbCrLf & "Bitte installieren Sie den Acrobat Reader in der Version 7 oder höher." _
, "Überprüfung Acrobat Reader", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End Sub
#End Region
#Region "Properties"
''' <summary>
''' Die Eigenschaft liefert True zurück, wenn der Acrobat Reader
''' initialisiert wurde, anderenfalls False.
''' </summary>
<Browsable(False)> _
Public ReadOnly Property isInitialized() As Boolean
Get
Return m_isInitialized
End Get
End Property
''' <summary>
''' Legt den Layout Modus für das PDF-Dokument fest, oder liest diese aus.
''' </summary>
<Description("Legt den Layout Modus für das PDF-Dokument fest, oder liest diese aus."), _
Category("Darstellung"), _
DefaultValue(GetType(PDFLayoutMode), "DontCare")> _
Public Property LayoutMode() As PDFLayoutMode
Get
Return m_LayoutMode
End Get
Set(ByVal value As PDFLayoutMode)
m_LayoutMode = value
Try
m_PDFHost.Viewer.setLayoutMode(m_LayoutMode.ToString)
Catch ex As Exception
Throw ex
End Try
End Set
End Property
''' <summary>
''' Legt den Modus für die Seitendarstellung fest,oder liest diese aus.
''' </summary>
<Description("Legt den Modus für die Seitendarstellung fest,oder liest diese aus."), _
Category("Darstellung"), _
DefaultValue(GetType(PDFPageMode), "none")> _
Public Property PageMode() As PDFPageMode
Get
Return m_PageMode
End Get
Set(ByVal value As PDFPageMode)
m_PageMode = value
Try
m_PDFHost.Viewer.setPageMode(m_PageMode.ToString)
Catch ex As Exception
Throw ex
End Try
End Set
End Property
''' <summary>
''' Bestimmt, ob die ToolBar angezeigt werden soll.
''' </summary>
<Description("Bestimmt, ob die ToolBar angezeigt werden soll."), _
Category("Layout"), _
DefaultValue(True)> _
Public Property ShowToolBar() As Boolean
Get
Return m_ShowToolBar
End Get
Set(ByVal value As Boolean)
m_ShowToolBar = value
Try
m_PDFHost.Viewer.setShowToolbar(value)
Catch ex As Exception
Throw ex
End Try
End Set
End Property
''' <summary>
''' Bestimmt, ob die ScrollBars angezeigt werden sollen.
''' </summary>
<Description("Bestimmt, ob die ScrollBars angezeigt werden sollen."), _
Category("Layout"), _
DefaultValue(True)> _
Public Property ShowScrollBars() As Boolean
Get
Return m_ShowScrollBars
End Get
Set(ByVal value As Boolean)
m_ShowScrollBars = value
Try
m_PDFHost.Viewer.setShowScrollbars(value)
Catch ex As Exception
Throw ex
End Try
End Set
End Property
''' <summary>
''' Legt den Modus für die Seiteneinpassung fest, oder liest diese aus.
''' </summary>
<Description("Legt den Modus für die Seiteneinpassung fest, oder liest diese aus."), _
Category("Darstellung"), _
DefaultValue(GetType(PDFViewMode), "Fit")> _
Public Property ViewMode() As PDFViewMode
Get
Return m_ViewMode
End Get
Set(ByVal value As PDFViewMode)
m_ViewMode = value
Try
m_PDFHost.Viewer.setView(m_ViewMode.ToString)
Catch ex As Exception
Throw ex
End Try
End Set
End Property
#End Region
#Region "Methoden"
''' <summary>
''' Geht im Undo-Buffer zur vorherigen Ansicht.
''' </summary>
Public Sub GoBackward()
Try
m_PDFHost.Viewer.GoBackwardStack()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub GoForward()
Try
m_PDFHost.Viewer.GoForwardStack()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub GotoPage(ByVal PageNumber As Integer)
Try
m_PDFHost.Viewer.setCurrentPage(PageNumber)
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub GotoFirstPage()
Try
m_PDFHost.Viewer.GotoFirstPage()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub GotoLastPage()
Try
m_PDFHost.Viewer.GotoLastPage()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub GotoNextPage()
Try
m_PDFHost.Viewer.GotoNextPage()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub GotoPreviousPage()
Try
m_PDFHost.Viewer.GotoPreviousPage()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Function LoadFile(ByVal FileName As String) As Boolean
Try
Dim b As Boolean = m_PDFHost.Viewer.LoadFile(FileName)
If b Then
Me.ShowToolBar = m_ShowToolBar
Me.ShowScrollBars = m_ShowScrollBars
Me.LayoutMode = m_LayoutMode
Me.PageMode = m_PageMode
Me.ViewMode = m_ViewMode
End If
Return b
Catch ex As Exception
Throw ex
End Try
End Function
Public Sub PrintWithDialog()
Try
m_PDFHost.Viewer.PrintWithDialog()
Catch ex As Exception
Throw ex
End Try
End Sub
Public Sub Zoom(ByVal Percent As Single)
Try
m_PDFHost.Viewer.setZoom(Percent)
Catch ex As Exception
Throw ex
End Try
End Sub
#End Region
End Class

View File

@@ -0,0 +1,3 @@
E:\Software-Projekte\EDOKA\tools\EDOKA_Toolset\clspdf\obj\Debug\clspdf.Resources.resources
E:\Software-Projekte\EDOKA\tools\EDOKA_Toolset\clspdf\obj\Debug\clspdf.vbproj.GenerateResource.Cache
E:\Software-Projekte\EDOKA\tools\EDOKA_Toolset\clspdf\obj\Debug\clspdf.vbprojResolveAssemblyReference.cache