Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 76dae02

Browse files
DevExpressExampleBotDevExpressExampleBot
DevExpressExampleBot
authored and
DevExpressExampleBot
committed
Source auto update [skip ci]
1 parent 38309d0 commit 76dae02

File tree

5 files changed

+39
-63
lines changed

5 files changed

+39
-63
lines changed

‎VB/GetCheckboxCheckedValue.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1

‎VB/GetCheckboxCheckedValue/GetCheckboxCheckedValue.vbproj

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,37 @@
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
5+
<OptionInfer>On</OptionInfer>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
67
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
78
<ProjectGuid>{9D565609-F065-490A-BC29-3B2F740539A7}</ProjectGuid>
89
<OutputType>Exe</OutputType>
9-
<RootNamespace></RootNamespace>
10+
<RootNamespace>
11+
</RootNamespace>
1012
<AssemblyName>GetCheckboxCheckedValue</AssemblyName>
1113
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
1214
<FileAlignment>512</FileAlignment>
1315
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14-
<OptionExplicit>On</OptionExplicit>
15-
<OptionCompare>Binary</OptionCompare>
16-
<OptionStrict>Off</OptionStrict>
17-
<OptionInfer>On</OptionInfer>
1816
</PropertyGroup>
1917
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2018
<PlatformTarget>AnyCPU</PlatformTarget>
2119
<DebugSymbols>true</DebugSymbols>
2220
<DebugType>full</DebugType>
2321
<Optimize>false</Optimize>
2422
<OutputPath>bin\Debug\</OutputPath>
25-
<DefineDebug>true</DefineDebug>
26-
<DefineTrace>true</DefineTrace>
23+
<DefineConstants>DEBUG,TRACE</DefineConstants>
2724
<ErrorReport>prompt</ErrorReport>
28-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
25+
<WarningLevel>4</WarningLevel>
26+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
2927
</PropertyGroup>
3028
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3129
<PlatformTarget>AnyCPU</PlatformTarget>
3230
<DebugType>pdbonly</DebugType>
3331
<Optimize>true</Optimize>
3432
<OutputPath>bin\Release\</OutputPath>
35-
<DefineDebug>false</DefineDebug>
36-
<DefineTrace>true</DefineTrace>
33+
<DefineConstants>TRACE</DefineConstants>
3734
<ErrorReport>prompt</ErrorReport>
35+
<WarningLevel>4</WarningLevel>
3836
</PropertyGroup>
3937
<ItemGroup>
4038
<Reference Include="DevExpress.Data.v21.1, Version=21.1.7.0">
@@ -61,23 +59,9 @@
6159
<Reference Include="System.Net.Http" />
6260
<Reference Include="System.Xml" />
6361
</ItemGroup>
64-
<ItemGroup>
65-
<Import Include="Microsoft.VisualBasic" />
66-
<Import Include="System.Collections.Generic" />
67-
<Import Include="System.Collections" />
68-
<Import Include="System.Diagnostics" />
69-
<Import Include="System.Linq" />
70-
<Import Include="System.Xml.Linq" />
71-
<Import Include="System.Data" />
72-
<Import Include="System.Drawing" />
73-
<Import Include="System.Windows.Controls" />
74-
<Import Include="System.Windows.Data" />
75-
<Import Include="System.Windows.Shapes" />
76-
<Import Include="System" />
77-
</ItemGroup>
7862
<ItemGroup>
7963
<Compile Include="Program.vb" />
80-
<Compile Include="My Project\AssemblyInfo.vb" />
64+
<Compile Include="Properties\AssemblyInfo.vb" />
8165
</ItemGroup>
8266
<ItemGroup>
8367
<None Include="App.config" />
-136 KB
Binary file not shown.

‎VB/GetCheckboxCheckedValue/Program.vb

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
1-
Imports DevExpress.Pdf
1+
Imports DevExpress.Pdf
22

33
Namespace GetCheckboxCheckedValue
4-
Friend Class Program
54

6-
Shared Sub Main(ByVal args() As String)
7-
' Load a document with an interactive form.
8-
Dim processor As New PdfDocumentProcessor()
9-
processor.LoadDocument("..\..\InteractiveForm.pdf")
5+
Friend Class Program
106

11-
DimdocumentFacadeAsPdfDocumentFacade=processor.DocumentFacade
12-
DimacroFormAsPdfAcroFormFacade=documentFacade.AcroForm
13-
14-
' Obtain the check box form field:
15-
Dim genderField As PdfCheckBoxFormFieldFacade = acroForm.GetCheckBoxFormField("Female")
16-
17-
' Specify a checked value for the Female form field:
18-
genderField.IsChecked=True
19-
20-
' Save the modified document.
21-
processor.SaveDocument("..\..\Result.pdf")
22-
EndSub
23-
24-
End Class
7+
SharedSubMain(ByValargsAsString())
8+
' Load a document with an interactive form.
9+
DimprocessorAsPdfDocumentProcessor=NewPdfDocumentProcessor()
10+
processor.LoadDocument("..\..\InteractiveForm.pdf")
11+
Dim documentFacade As PdfDocumentFacade = processor.DocumentFacade
12+
DimacroFormAsPdfAcroFormFacade=documentFacade.AcroForm
13+
' Obtain the check box form field:
14+
DimgenderFieldAsPdfCheckBoxFormFieldFacade=acroForm.GetCheckBoxFormField("Female")
15+
' Specify a checked value for the Female form field:
16+
genderField.IsChecked=True
17+
' Save the modified document.
18+
processor.SaveDocument("..\..\Result.pdf")
19+
EndSub
20+
End Class
2521
End Namespace
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
Imports System.Reflection
2-
Imports System.Runtime.CompilerServices
1+
Imports System.Reflection
32
Imports System.Runtime.InteropServices
43

54
' General Information about an assembly is controlled through the following
65
' set of attributes. Change these attribute values to modify the information
76
' associated with an assembly.
8-
<Assembly: AssemblyTitle("ConsoleApp3")>
9-
<Assembly: AssemblyDescription("")>
10-
<Assembly: AssemblyConfiguration("")>
11-
<Assembly: AssemblyCompany("")>
12-
<Assembly: AssemblyProduct("ConsoleApp3")>
13-
<Assembly: AssemblyCopyright("Copyright © 2017")>
14-
<Assembly: AssemblyTrademark("")>
15-
<Assembly: AssemblyCulture("")>
16-
7+
<Assembly:AssemblyTitle("ConsoleApp3")>
8+
<Assembly:AssemblyDescription("")>
9+
<Assembly:AssemblyConfiguration("")>
10+
<Assembly:AssemblyCompany("")>
11+
<Assembly:AssemblyProduct("ConsoleApp3")>
12+
<Assembly:AssemblyCopyright("Copyright © 2017")>
13+
<Assembly:AssemblyTrademark("")>
14+
<Assembly:AssemblyCulture("")>
1715
' Setting ComVisible to false makes the types in this assembly not visible
1816
' to COM components. If you need to access a type in this assembly from
1917
' COM, set the ComVisible attribute to true on that type.
20-
<Assembly: ComVisible(False)>
21-
18+
<Assembly:ComVisible(False)>
2219
' The following GUID is for the ID of the typelib if this project is exposed to COM
23-
<Assembly: Guid("9d565609-f065-490a-bc29-3b2f740539a7")>
24-
20+
<Assembly:Guid("9d565609-f065-490a-bc29-3b2f740539a7")>
2521
' Version information for an assembly consists of the following four values:
2622
'
2723
' Major Version
@@ -32,5 +28,5 @@ Imports System.Runtime.InteropServices
3228
' You can specify all the values or you can default the Build and Revision Numbers
3329
' by using the '*' as shown below:
3430
' [assembly: AssemblyVersion("1.0.*")]
35-
<Assembly:AssemblyVersion("1.0.0.0")>
36-
<Assembly:AssemblyFileVersion("1.0.0.0")>
31+
<Assembly:AssemblyVersion("1.0.0.0")>
32+
<Assembly:AssemblyFileVersion("1.0.0.0")>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /