-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Commit, add files from forked source repository.
- Loading branch information
0 parents
commit 8411453
Showing
55 changed files
with
8,739 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2012 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BarcodeLibTest", "BarcodeLibTest\BarcodeLibTest.csproj", "{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BarcodeLib", "BarcodeLib\BarcodeLib.csproj", "{F8646414-0C9C-49BB-9DA3-3923BF78A398}" | ||
EndProject | ||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BarcodeDemo", "BarcodeDemo\", "{F66997B3-1333-4C79-A268-DA9DD62174A2}" | ||
ProjectSection(WebsiteProperties) = preProject | ||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" | ||
Debug.AspNetCompiler.VirtualPath = "/BarcodeDemo" | ||
Debug.AspNetCompiler.PhysicalPath = "BarcodeDemo\" | ||
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\" | ||
Debug.AspNetCompiler.Updateable = "true" | ||
Debug.AspNetCompiler.ForceOverwrite = "true" | ||
Debug.AspNetCompiler.FixedNames = "false" | ||
Debug.AspNetCompiler.Debug = "True" | ||
Release.AspNetCompiler.VirtualPath = "/BarcodeDemo" | ||
Release.AspNetCompiler.PhysicalPath = "BarcodeDemo\" | ||
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\" | ||
Release.AspNetCompiler.Updateable = "true" | ||
Release.AspNetCompiler.ForceOverwrite = "true" | ||
Release.AspNetCompiler.FixedNames = "false" | ||
Release.AspNetCompiler.Debug = "False" | ||
VWDPort = "59259" | ||
DefaultWebSiteLanguage = "Visual C#" | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|.NET = Debug|.NET | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|x86 = Debug|x86 | ||
Release|.NET = Release|.NET | ||
Release|Any CPU = Release|Any CPU | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|.NET.ActiveCfg = Debug|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|.NET.ActiveCfg = Release|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{8DB57BA1-E88C-43D9-AD0E-04BFA6B11C61}.Release|x86.ActiveCfg = Release|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|.NET.ActiveCfg = Debug|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|x86.ActiveCfg = Debug|x86 | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Debug|x86.Build.0 = Debug|x86 | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|.NET.ActiveCfg = Release|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|x86.ActiveCfg = Release|x86 | ||
{F8646414-0C9C-49BB-9DA3-3923BF78A398}.Release|x86.Build.0 = Release|x86 | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|.NET.ActiveCfg = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|.NET.ActiveCfg = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|Any CPU.Build.0 = Debug|Any CPU | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Release|x86.ActiveCfg = Debug|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BarcodeDemo", "..\BarcodeDemo\", "{F66997B3-1333-4C79-A268-DA9DD62174A2}" | ||
ProjectSection(WebsiteProperties) = preProject | ||
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" | ||
Debug.AspNetCompiler.VirtualPath = "/BarcodeDemo" | ||
Debug.AspNetCompiler.PhysicalPath = "..\BarcodeDemo\" | ||
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\" | ||
Debug.AspNetCompiler.Updateable = "true" | ||
Debug.AspNetCompiler.ForceOverwrite = "true" | ||
Debug.AspNetCompiler.FixedNames = "false" | ||
Debug.AspNetCompiler.Debug = "True" | ||
Release.AspNetCompiler.VirtualPath = "/BarcodeDemo" | ||
Release.AspNetCompiler.PhysicalPath = "..\BarcodeDemo\" | ||
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\BarcodeDemo\" | ||
Release.AspNetCompiler.Updateable = "true" | ||
Release.AspNetCompiler.ForceOverwrite = "true" | ||
Release.AspNetCompiler.FixedNames = "false" | ||
Release.AspNetCompiler.Debug = "False" | ||
VWDPort = "65356" | ||
DefaultWebSiteLanguage = "Visual C#" | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|.NET = Debug|.NET | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{F66997B3-1333-4C79-A268-DA9DD62174A2}.Debug|.NET.ActiveCfg = Debug|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> | ||
|
||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head runat="server"> | ||
<link rel="Stylesheet" type="text/css" href="stylesheet.css" /> | ||
<title>Barcode Page</title> | ||
<style type="text/css"> | ||
.style1 | ||
{ | ||
width: 129px; | ||
} | ||
.style3 | ||
{ | ||
text-align: left; | ||
color: #0066FF; | ||
font-weight: bold; | ||
font-size: x-large; | ||
} | ||
</style> | ||
<script type="text/javascript" language="javascript"> | ||
function colorChanged(sender) | ||
{ | ||
sender.get_element().style.backcolor = | ||
"#" + sender.get_selectedColor(); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<form id="form1" runat="server"> | ||
<div> | ||
|
||
<asp:ScriptManager ID="ScriptManager1" runat="server"> | ||
</asp:ScriptManager> | ||
<div class="style3"> | ||
Barcode Demo | ||
<asp:Label ID="lblLibraryVersion" runat="server" Text="[Library Version]"></asp:Label> | ||
</div> | ||
<table bgcolor="White"> | ||
<tr> | ||
<td style="background-color: #FFFFCC; border: 1px solid #000000"> | ||
<asp:UpdatePanel ID="panelInputs" runat="server"> | ||
<ContentTemplate> | ||
<table> | ||
<tr> | ||
<td class="style1"> | ||
<span lang="en-us">Value to Encode</span></td> | ||
<td> | ||
<span lang="en-us"> | ||
<asp:CheckBox ID="chkGenerateLabel" runat="server" Text="Generate Label" /> | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2"> | ||
<asp:TextBox ID="txtData" runat="server" Width="264px">038000356216</asp:TextBox> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="style1" align="center"> | ||
<span lang="en-us">Encoding</span></td> | ||
<td align="center"> | ||
<span lang="en-us">Image Format</span></td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<asp:DropDownList ID="cbEncodeType" runat="server"> | ||
<asp:ListItem>UPC-A</asp:ListItem> | ||
<asp:ListItem>UPC-E</asp:ListItem> | ||
<asp:ListItem>UPC 2 Digit Ext</asp:ListItem> | ||
<asp:ListItem>UPC 5 Digit Ext</asp:ListItem> | ||
<asp:ListItem>EAN-13</asp:ListItem> | ||
<asp:ListItem>JAN-13</asp:ListItem> | ||
<asp:ListItem>EAN-8</asp:ListItem> | ||
<asp:ListItem>ITF-14</asp:ListItem> | ||
<asp:ListItem>Interleaved 2 of 5</asp:ListItem> | ||
<asp:ListItem>Standard 2 of 5</asp:ListItem> | ||
<asp:ListItem>Codabar</asp:ListItem> | ||
<asp:ListItem>Postnet</asp:ListItem> | ||
<asp:ListItem>Bookland-ISBN</asp:ListItem> | ||
<asp:ListItem>Code 11</asp:ListItem> | ||
<asp:ListItem>Code 39</asp:ListItem> | ||
<asp:ListItem>Code 39 Extended</asp:ListItem> | ||
<asp:ListItem>Code 93</asp:ListItem> | ||
<asp:ListItem>Code 128</asp:ListItem> | ||
<asp:ListItem>Code 128-A</asp:ListItem> | ||
<asp:ListItem>Code 128-B</asp:ListItem> | ||
<asp:ListItem>Code 128-C</asp:ListItem> | ||
<asp:ListItem>LOGMARS</asp:ListItem> | ||
<asp:ListItem>MSI</asp:ListItem> | ||
<asp:ListItem>Telepen</asp:ListItem> | ||
<asp:ListItem>FIM (Facing Identification Mark)</asp:ListItem> | ||
</asp:DropDownList> | ||
</td> | ||
<td align="center"> | ||
<asp:DropDownList ID="ddlImageFormat" runat="server"> | ||
<asp:ListItem>GIF</asp:ListItem> | ||
<asp:ListItem>JPEG</asp:ListItem> | ||
<asp:ListItem>PNG</asp:ListItem> | ||
<asp:ListItem>TIFF</asp:ListItem> | ||
<asp:ListItem>BMP</asp:ListItem> | ||
</asp:DropDownList> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="style1"> | ||
<asp:Button ID="btnEncode" runat="server" Text="Encode" Width="100px" | ||
onclick="btnEncode_Click" UseSubmitBehavior="False" /> | ||
</td> | ||
<td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2"> | ||
<asp:Label ID="Label1" runat="server" Text="Alignment:"></asp:Label> | ||
| ||
<asp:RadioButton ID="rbAlignLeft" runat="server" GroupName="alignment" | ||
Text="Left" /> | ||
| ||
<asp:RadioButton ID="rbAlignCenter" runat="server" Checked="True" | ||
GroupName="alignment" Text="Center" /> | ||
| ||
<asp:RadioButton ID="rbAlignRight" runat="server" GroupName="alignment" | ||
Text="Right" /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<span lang="en-us">Foreground Color</span></td> | ||
<td> | ||
<span lang="en-us">Background Color</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<asp:TextBox ID="txtForeColor" runat="server" | ||
ReadOnly="False" BackColor="Black"></asp:TextBox> | ||
<cc1:ColorPickerExtender ID="ColorPickerExtender1" runat="server" | ||
TargetControlID="txtForeColor" OnClientColorSelectionChanged="colorChanged"/> | ||
</td> | ||
<td> | ||
<asp:TextBox ID="txtBackColor" runat="server" | ||
ReadOnly="False"></asp:TextBox> | ||
<cc1:ColorPickerExtender ID="ColorPickerExtender2" runat="server" | ||
TargetControlID="txtBackColor" OnClientColorSelectionChanged="colorChanged"/> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<span lang="en-us">Width</span></td> | ||
<td> | ||
<span lang="en-us">Height</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<asp:TextBox ID="txtWidth" runat="server">300</asp:TextBox> | ||
</td> | ||
<td> | ||
<asp:TextBox ID="txtHeight" runat="server">150</asp:TextBox> | ||
</td> | ||
</tr> | ||
</table> | ||
</ContentTemplate> | ||
</asp:UpdatePanel> | ||
</td> | ||
<td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid"> | ||
</td> | ||
<td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid"> | ||
<asp:UpdatePanel ID="panelBarcode" runat="server"> | ||
<ContentTemplate> | ||
<asp:Image ID="BarcodeImage" runat="server" /> | ||
</ContentTemplate> | ||
</asp:UpdatePanel> | ||
</td> | ||
<td style="border-color: #000000; border-width: 1px; border-top-style: solid; border-bottom-style: solid; border-right-style: solid;"> | ||
</td> | ||
</tr> | ||
</table> | ||
<br /> | ||
|
||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Web; | ||
using System.Web.Security; | ||
using System.Web.UI; | ||
using System.Web.UI.HtmlControls; | ||
using System.Web.UI.WebControls; | ||
using System.Web.UI.WebControls.WebParts; | ||
using System.Xml.Linq; | ||
|
||
public partial class _Default : System.Web.UI.Page | ||
{ | ||
protected void Page_Load(object sender, EventArgs e) | ||
{ | ||
this.BarcodeImage.Visible = false; | ||
|
||
lblLibraryVersion.Text = BarcodeLib.Barcode.Version.ToString(); | ||
} | ||
protected void btnEncode_Click(object sender, EventArgs e) | ||
{ | ||
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(); | ||
this.BarcodeImage.ImageUrl = strImageURL; | ||
this.BarcodeImage.Width = Convert.ToInt32(this.txtWidth.Text); | ||
this.BarcodeImage.Height = Convert.ToInt32(this.txtHeight.Text); | ||
this.BarcodeImage.Visible = true; | ||
} | ||
protected string GetAlignmentValue() | ||
{ | ||
if (this.rbAlignCenter.Checked) | ||
return "c"; | ||
else if (this.rbAlignLeft.Checked) | ||
return "l"; | ||
else if (this.rbAlignRight.Checked) | ||
return "r"; | ||
return "c"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GenerateBarcodeImage.aspx.cs" Inherits="GenerateBarcodeImage" %> | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head runat="server"> | ||
<title>Generate Barcode Image</title> | ||
</head> | ||
<body> | ||
<form id="form1" runat="server"> | ||
<div> | ||
|
||
</div> | ||
</form> | ||
</body> | ||
</html> |
Oops, something went wrong.