Skip to content

Commit 8411453

Browse files
Spitfire1900Kyle Gottfried
authored andcommitted
Initial Commit, add files from forked source repository.
0 parents  commit 8411453

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+8739
-0
lines changed

Barcode.sln

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BarcodeLibTest", "BarcodeLibTest\BarcodeLibTest.csproj", "{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}"
5+
EndProject
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BarcodeLib", "BarcodeLib\BarcodeLib.csproj", "{F8646414-0C9C-49BB-9DA3-3923BF78A398}"
7+
EndProject
8+
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BarcodeDemo", "BarcodeDemo\", "{F66997B3-1333-4C79-A268-DA9DD62174A2}"
9+
ProjectSection(WebsiteProperties) = preProject
10+
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
11+
Debug.AspNetCompiler.VirtualPath = "/BarcodeDemo"
12+
Debug.AspNetCompiler.PhysicalPath = "BarcodeDemo\"
13+
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\"
14+
Debug.AspNetCompiler.Updateable = "true"
15+
Debug.AspNetCompiler.ForceOverwrite = "true"
16+
Debug.AspNetCompiler.FixedNames = "false"
17+
Debug.AspNetCompiler.Debug = "True"
18+
Release.AspNetCompiler.VirtualPath = "/BarcodeDemo"
19+
Release.AspNetCompiler.PhysicalPath = "BarcodeDemo\"
20+
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\"
21+
Release.AspNetCompiler.Updateable = "true"
22+
Release.AspNetCompiler.ForceOverwrite = "true"
23+
Release.AspNetCompiler.FixedNames = "false"
24+
Release.AspNetCompiler.Debug = "False"
25+
VWDPort = "59259"
26+
DefaultWebSiteLanguage = "Visual C#"
27+
EndProjectSection
28+
EndProject
29+
Global
30+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
31+
Debug|.NET = Debug|.NET
32+
Debug|Any CPU = Debug|Any CPU
33+
Debug|x86 = Debug|x86
34+
Release|.NET = Release|.NET
35+
Release|Any CPU = Release|Any CPU
36+
Release|x86 = Release|x86
37+
EndGlobalSection
38+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
39+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|.NET.ActiveCfg = Debug|Any CPU
40+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|Any CPU.Build.0 = Debug|Any CPU
42+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|x86.ActiveCfg = Debug|Any CPU
43+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|.NET.ActiveCfg = Release|Any CPU
44+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|x86.ActiveCfg = Release|Any CPU
47+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|.NET.ActiveCfg = Debug|Any CPU
48+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
49+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|Any CPU.Build.0 = Debug|Any CPU
50+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|x86.ActiveCfg = Debug|x86
51+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|x86.Build.0 = Debug|x86
52+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|.NET.ActiveCfg = Release|Any CPU
53+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|Any CPU.Build.0 = Release|Any CPU
55+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|x86.ActiveCfg = Release|x86
56+
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|x86.Build.0 = Release|x86
57+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|.NET.ActiveCfg = Debug|Any CPU
58+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
59+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
60+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|x86.ActiveCfg = Debug|Any CPU
61+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|.NET.ActiveCfg = Debug|Any CPU
62+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|Any CPU.ActiveCfg = Debug|Any CPU
63+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|Any CPU.Build.0 = Debug|Any CPU
64+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|x86.ActiveCfg = Debug|Any CPU
65+
EndGlobalSection
66+
GlobalSection(SolutionProperties) = preSolution
67+
HideSolutionNode = FALSE
68+
EndGlobalSection
69+
EndGlobal

BarcodeDemo/BarcodeDemo.sln

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BarcodeDemo", "..\BarcodeDemo\", "{F66997B3-1333-4C79-A268-DA9DD62174A2}"
5+
ProjectSection(WebsiteProperties) = preProject
6+
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
7+
Debug.AspNetCompiler.VirtualPath = "/BarcodeDemo"
8+
Debug.AspNetCompiler.PhysicalPath = "..\BarcodeDemo\"
9+
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\"
10+
Debug.AspNetCompiler.Updateable = "true"
11+
Debug.AspNetCompiler.ForceOverwrite = "true"
12+
Debug.AspNetCompiler.FixedNames = "false"
13+
Debug.AspNetCompiler.Debug = "True"
14+
Release.AspNetCompiler.VirtualPath = "/BarcodeDemo"
15+
Release.AspNetCompiler.PhysicalPath = "..\BarcodeDemo\"
16+
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\"
17+
Release.AspNetCompiler.Updateable = "true"
18+
Release.AspNetCompiler.ForceOverwrite = "true"
19+
Release.AspNetCompiler.FixedNames = "false"
20+
Release.AspNetCompiler.Debug = "False"
21+
VWDPort = "65356"
22+
DefaultWebSiteLanguage = "Visual C#"
23+
EndProjectSection
24+
EndProject
25+
Global
26+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
27+
Debug|.NET = Debug|.NET
28+
EndGlobalSection
29+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
30+
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|.NET.ActiveCfg = Debug|Any CPU
31+
EndGlobalSection
32+
GlobalSection(SolutionProperties) = preSolution
33+
HideSolutionNode = FALSE
34+
EndGlobalSection
35+
EndGlobal

BarcodeDemo/Default.aspx

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
2+
3+
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
4+
5+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6+
7+
<html xmlns="http://www.w3.org/1999/xhtml">
8+
<head runat="server">
9+
<link rel="Stylesheet" type="text/css" href="stylesheet.css" />
10+
<title>Barcode Page</title>
11+
<style type="text/css">
12+
.style1
13+
{
14+
width: 129px;
15+
}
16+
.style3
17+
{
18+
text-align: left;
19+
color: #0066FF;
20+
font-weight: bold;
21+
font-size: x-large;
22+
}
23+
</style>
24+
<script type="text/javascript" language="javascript">
25+
function colorChanged(sender)
26+
{
27+
sender.get_element().style.backcolor =
28+
"#" + sender.get_selectedColor();
29+
}
30+
</script>
31+
</head>
32+
<body>
33+
<form id="form1" runat="server">
34+
<div>
35+
36+
<asp:ScriptManager ID="ScriptManager1" runat="server">
37+
</asp:ScriptManager>
38+
<div class="style3">
39+
Barcode Demo
40+
<asp:Label ID="lblLibraryVersion" runat="server" Text="[Library Version]"></asp:Label>
41+
</div>
42+
<table bgcolor="White">
43+
<tr>
44+
<td style="background-color: #FFFFCC; border: 1px solid #000000">
45+
<asp:UpdatePanel ID="panelInputs" runat="server">
46+
<ContentTemplate>
47+
<table>
48+
<tr>
49+
<td class="style1">
50+
<span lang="en-us">Value to Encode</span></td>
51+
<td>
52+
<span lang="en-us">
53+
<asp:CheckBox ID="chkGenerateLabel" runat="server" Text="Generate Label" />
54+
</span>
55+
</td>
56+
</tr>
57+
<tr>
58+
<td colspan="2">
59+
<asp:TextBox ID="txtData" runat="server" Width="264px">038000356216</asp:TextBox>
60+
</td>
61+
</tr>
62+
<tr>
63+
<td class="style1" align="center">
64+
<span lang="en-us">Encoding</span></td>
65+
<td align="center">
66+
<span lang="en-us">Image Format</span></td>
67+
</tr>
68+
<tr>
69+
<td align="center">
70+
<asp:DropDownList ID="cbEncodeType" runat="server">
71+
<asp:ListItem>UPC-A</asp:ListItem>
72+
<asp:ListItem>UPC-E</asp:ListItem>
73+
<asp:ListItem>UPC 2 Digit Ext</asp:ListItem>
74+
<asp:ListItem>UPC 5 Digit Ext</asp:ListItem>
75+
<asp:ListItem>EAN-13</asp:ListItem>
76+
<asp:ListItem>JAN-13</asp:ListItem>
77+
<asp:ListItem>EAN-8</asp:ListItem>
78+
<asp:ListItem>ITF-14</asp:ListItem>
79+
<asp:ListItem>Interleaved 2 of 5</asp:ListItem>
80+
<asp:ListItem>Standard 2 of 5</asp:ListItem>
81+
<asp:ListItem>Codabar</asp:ListItem>
82+
<asp:ListItem>Postnet</asp:ListItem>
83+
<asp:ListItem>Bookland-ISBN</asp:ListItem>
84+
<asp:ListItem>Code 11</asp:ListItem>
85+
<asp:ListItem>Code 39</asp:ListItem>
86+
<asp:ListItem>Code 39 Extended</asp:ListItem>
87+
<asp:ListItem>Code 93</asp:ListItem>
88+
<asp:ListItem>Code 128</asp:ListItem>
89+
<asp:ListItem>Code 128-A</asp:ListItem>
90+
<asp:ListItem>Code 128-B</asp:ListItem>
91+
<asp:ListItem>Code 128-C</asp:ListItem>
92+
<asp:ListItem>LOGMARS</asp:ListItem>
93+
<asp:ListItem>MSI</asp:ListItem>
94+
<asp:ListItem>Telepen</asp:ListItem>
95+
<asp:ListItem>FIM (Facing Identification Mark)</asp:ListItem>
96+
</asp:DropDownList>
97+
</td>
98+
<td align="center">
99+
<asp:DropDownList ID="ddlImageFormat" runat="server">
100+
<asp:ListItem>GIF</asp:ListItem>
101+
<asp:ListItem>JPEG</asp:ListItem>
102+
<asp:ListItem>PNG</asp:ListItem>
103+
<asp:ListItem>TIFF</asp:ListItem>
104+
<asp:ListItem>BMP</asp:ListItem>
105+
</asp:DropDownList>
106+
</td>
107+
</tr>
108+
<tr>
109+
<td class="style1">
110+
<asp:Button ID="btnEncode" runat="server" Text="Encode" Width="100px"
111+
onclick="btnEncode_Click" UseSubmitBehavior="False" />
112+
</td>
113+
<td>
114+
&nbsp;</td>
115+
</tr>
116+
<tr>
117+
<td colspan="2">
118+
<asp:Label ID="Label1" runat="server" Text="Alignment:"></asp:Label>
119+
&nbsp;
120+
<asp:RadioButton ID="rbAlignLeft" runat="server" GroupName="alignment"
121+
Text="Left" />
122+
&nbsp;&nbsp;
123+
<asp:RadioButton ID="rbAlignCenter" runat="server" Checked="True"
124+
GroupName="alignment" Text="Center" />
125+
&nbsp;&nbsp;
126+
<asp:RadioButton ID="rbAlignRight" runat="server" GroupName="alignment"
127+
Text="Right" />
128+
</td>
129+
</tr>
130+
<tr>
131+
<td>
132+
<span lang="en-us">Foreground Color</span></td>
133+
<td>
134+
<span lang="en-us">Background Color</span></td>
135+
</tr>
136+
<tr>
137+
<td>
138+
<asp:TextBox ID="txtForeColor" runat="server"
139+
ReadOnly="False" BackColor="Black"></asp:TextBox>
140+
<cc1:ColorPickerExtender ID="ColorPickerExtender1" runat="server"
141+
TargetControlID="txtForeColor" OnClientColorSelectionChanged="colorChanged"/>
142+
</td>
143+
<td>
144+
<asp:TextBox ID="txtBackColor" runat="server"
145+
ReadOnly="False"></asp:TextBox>
146+
<cc1:ColorPickerExtender ID="ColorPickerExtender2" runat="server"
147+
TargetControlID="txtBackColor" OnClientColorSelectionChanged="colorChanged"/>
148+
</td>
149+
</tr>
150+
<tr>
151+
<td>
152+
<span lang="en-us">Width</span></td>
153+
<td>
154+
<span lang="en-us">Height</span></td>
155+
</tr>
156+
<tr>
157+
<td>
158+
<asp:TextBox ID="txtWidth" runat="server">300</asp:TextBox>
159+
</td>
160+
<td>
161+
<asp:TextBox ID="txtHeight" runat="server">150</asp:TextBox>
162+
</td>
163+
</tr>
164+
</table>
165+
</ContentTemplate>
166+
</asp:UpdatePanel>
167+
</td>
168+
<td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid">
169+
&nbsp;</td>
170+
<td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid">
171+
<asp:UpdatePanel ID="panelBarcode" runat="server">
172+
<ContentTemplate>
173+
<asp:Image ID="BarcodeImage" runat="server" />
174+
</ContentTemplate>
175+
</asp:UpdatePanel>
176+
</td>
177+
<td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid; border-right-style: solid;">
178+
&nbsp;</td>
179+
</tr>
180+
</table>
181+
<br />
182+
183+
</div>
184+
</form>
185+
</body>
186+
</html>

BarcodeDemo/Default.aspx.cs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using System;
2+
using System.Collections;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Web;
7+
using System.Web.Security;
8+
using System.Web.UI;
9+
using System.Web.UI.HtmlControls;
10+
using System.Web.UI.WebControls;
11+
using System.Web.UI.WebControls.WebParts;
12+
using System.Xml.Linq;
13+
14+
public partial class _Default : System.Web.UI.Page
15+
{
16+
protected void Page_Load(object sender, EventArgs e)
17+
{
18+
this.BarcodeImage.Visible = false;
19+
20+
lblLibraryVersion.Text = BarcodeLib.Barcode.Version.ToString();
21+
}
22+
protected void btnEncode_Click(object sender, EventArgs e)
23+
{
24+
string strImageURL = "GenerateBarcodeImage.aspx?d=" + this.txtData.Text.Trim() + "&h=" + this.txtHeight.Text.Trim() + "&w=" + this.txtWidth.Text.Trim() + "&bc=" + this.txtBackColor.Text.Trim() + "&fc=" + this.txtForeColor.Text.Trim() + "&t=" + this.cbEncodeType.SelectedValue + "&il=" + this.chkGenerateLabel.Checked.ToString() + "&if=" + this.ddlImageFormat.SelectedValue + "&align=" + GetAlignmentValue();
25+
this.BarcodeImage.ImageUrl = strImageURL;
26+
this.BarcodeImage.Width = Convert.ToInt32(this.txtWidth.Text);
27+
this.BarcodeImage.Height = Convert.ToInt32(this.txtHeight.Text);
28+
this.BarcodeImage.Visible = true;
29+
}
30+
protected string GetAlignmentValue()
31+
{
32+
if (this.rbAlignCenter.Checked)
33+
return "c";
34+
else if (this.rbAlignLeft.Checked)
35+
return "l";
36+
else if (this.rbAlignRight.Checked)
37+
return "r";
38+
return "c";
39+
}
40+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GenerateBarcodeImage.aspx.cs" Inherits="GenerateBarcodeImage" %>
2+
3+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4+
5+
<html xmlns="http://www.w3.org/1999/xhtml">
6+
<head runat="server">
7+
<title>Generate Barcode Image</title>
8+
</head>
9+
<body>
10+
<form id="form1" runat="server">
11+
<div>
12+
13+
</div>
14+
</form>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)