Skip to content

Commit

Permalink
Aspose .NET BarCode Generator for Dynamics CRM
Browse files Browse the repository at this point in the history
  • Loading branch information
asposemarketplace committed Oct 19, 2015
1 parent 9aad220 commit b683f04
Show file tree
Hide file tree
Showing 31 changed files with 2,454 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspose.BarCodeGenerator.GenerateBarCode", "GenerateBarCode\Aspose.BarCodeGenerator.GenerateBarCode.csproj", "{D915C25F-224A-4330-9E88-2B2369F81E61}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspose.BarCodeGenerator.ReplaceEmailToken", "ReplaceEmailToken\Aspose.BarCodeGenerator.ReplaceEmailToken.csproj", "{A12851BC-916B-4FE3-8425-E552BBCC81C6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebResources", "WebResources\WebResources.csproj", "{BEB1FBDC-E2F0-430D-AB6D-C80864121F2E}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://mzeeshanshafqat.visualstudio.com/defaultcollection
SccProjectUniqueName0 = GenerateBarCode\\Aspose.BarCodeGenerator.GenerateBarCode.csproj
SccProjectName0 = GenerateBarCode
SccAuxPath0 = https://mzeeshanshafqat.visualstudio.com/defaultcollection
SccLocalPath0 = GenerateBarCode
SccProvider0 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccProjectUniqueName1 = ReplaceEmailToken\\Aspose.BarCodeGenerator.ReplaceEmailToken.csproj
SccProjectName1 = ReplaceEmailToken
SccAuxPath1 = https://mzeeshanshafqat.visualstudio.com/defaultcollection
SccLocalPath1 = ReplaceEmailToken
SccProvider1 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccProjectUniqueName2 = WebResources\\WebResources.csproj
SccProjectName2 = WebResources
SccAuxPath2 = https://mzeeshanshafqat.visualstudio.com/defaultcollection
SccLocalPath2 = WebResources
SccProvider2 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D915C25F-224A-4330-9E88-2B2369F81E61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D915C25F-224A-4330-9E88-2B2369F81E61}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D915C25F-224A-4330-9E88-2B2369F81E61}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D915C25F-224A-4330-9E88-2B2369F81E61}.Release|Any CPU.Build.0 = Release|Any CPU
{A12851BC-916B-4FE3-8425-E552BBCC81C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A12851BC-916B-4FE3-8425-E552BBCC81C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A12851BC-916B-4FE3-8425-E552BBCC81C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A12851BC-916B-4FE3-8425-E552BBCC81C6}.Release|Any CPU.Build.0 = Release|Any CPU
{BEB1FBDC-E2F0-430D-AB6D-C80864121F2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEB1FBDC-E2F0-430D-AB6D-C80864121F2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEB1FBDC-E2F0-430D-AB6D-C80864121F2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEB1FBDC-E2F0-430D-AB6D-C80864121F2E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?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>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D915C25F-224A-4330-9E88-2B2369F81E61}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Aspose.BarCodeGenerator.GenerateBarCode</RootNamespace>
<AssemblyName>Aspose.BarCodeGenerator.GenerateBarCode</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Aspose.BarCode, Version=6.6.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\Aspose\Aspose.BarCode for .NET\bin\net4.5\Aspose.BarCode.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="GenerateBarCode.aspx" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="GenerateBarCode.aspx.cs">
<DependentUpon>GenerateBarCode.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="GenerateBarCode.aspx.designer.cs">
<DependentUpon>GenerateBarCode.aspx</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>53205</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:53205/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- 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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GenerateBarCode.aspx.cs" Inherits="Aspose.BarCodeGenerator.GenerateBarCode.GenerateBarCode" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
using Aspose.BarCode;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Aspose.BarCodeGenerator.GenerateBarCode
{
public partial class GenerateBarCode : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string CodeText = Request.QueryString["codetext"];
string Symbology = Request.QueryString["symbology"];

if (String.IsNullOrEmpty(CodeText))
CodeText = "Aspose .NET BarCode Generator for Dynamics CRM";

//Instantiate barcode object
BarCodeBuilder BarCode = new BarCodeBuilder();

//Set the Code text for the barcode
BarCode.CodeText = CodeText;

//Set the symbology type to Code128
string SymbologyText = Symbology;
BarCode.SymbologyType = GetSymbologyType(SymbologyText);
//Create an instance of resolution and apply on the barcode image with
//customized resolution settings
BarCode.Resolution = new Resolution(200f, 400f, ResolutionMode.Customized);
MemoryStream MemoryStream = new MemoryStream();
BarCode.Save(MemoryStream, BarCodeImageFormat.Png);


byte[] byteData = MemoryStream.ToArray();

Response.Clear();
Response.ContentType = "image/jpeg";
Response.BinaryWrite(byteData);
Response.End();
}

private Symbology GetSymbologyType(string SymbologyText)
{
switch (SymbologyText)
{
case "Codabar":
return Symbology.Codabar;
case "Code11":
return Symbology.Code11;
case "Code39Standard":
return Symbology.Code39Standard;
case "Code39Extended":
return Symbology.Code39Extended;
case "Code93Standard":
return Symbology.Code93Standard;
case "Code93Extended":
return Symbology.Code93Extended;
case "Code128":
return Symbology.Code128;
case "GS1Code128":
return Symbology.GS1Code128;
case "EAN8":
return Symbology.EAN8;
case "EAN13":
return Symbology.EAN13;
case "EAN14":
return Symbology.EAN14;
case "SCC14":
return Symbology.SCC14;
case "SSCC18":
return Symbology.SSCC18;
case "UPCA":
return Symbology.UPCA;
case "UPCE":
return Symbology.UPCE;
case "ISBN":
return Symbology.ISBN;
case "ISSN":
return Symbology.ISSN;
case "ISMN":
return Symbology.ISMN;
case "Standard2of5":
return Symbology.Standard2of5;
case "Interleaved2of5":
return Symbology.Interleaved2of5;
case "Matrix2of5":
return Symbology.Matrix2of5;
case "ItalianPost25":
return Symbology.ItalianPost25;
case "IATA2of5":
return Symbology.IATA2of5;
case "ITF14":
return Symbology.ITF14;
case "ITF6":
return Symbology.ITF6;
case "MSI":
return Symbology.MSI;
case "VIN":
return Symbology.VIN;
case "DeutschePostIdentcode":
return Symbology.DeutschePostIdentcode;
case "DeutschePostLeitcode":
return Symbology.DeutschePostLeitcode;
case "OPC":
return Symbology.OPC;
case "PZN":
return Symbology.PZN;
case "Code16K":
return Symbology.Code16K;
case "Pharmacode":
return Symbology.Pharmacode;
case "DataMatrix":
return Symbology.DataMatrix;
case "QR":
return Symbology.QR;
case "Aztec":
return Symbology.Aztec;
case "Pdf417":
return Symbology.Pdf417;
case "MacroPdf417":
return Symbology.MacroPdf417;
case "AustraliaPost":
return Symbology.AustraliaPost;
case "Postnet":
return Symbology.Postnet;
case "Planet":
return Symbology.Planet;
case "OneCode":
return Symbology.OneCode;
case "RM4SCC":
return Symbology.RM4SCC;
case "DatabarOmniDirectional":
return Symbology.DatabarOmniDirectional;
case "DatabarTruncated":
return Symbology.DatabarTruncated;
case "DatabarLimited":
return Symbology.DatabarLimited;
case "DatabarExpanded":
return Symbology.DatabarExpanded;
case "SingaporePost":
return Symbology.SingaporePost;
case "GS1DataMatrix":
return Symbology.GS1DataMatrix;
case "AustralianPosteParcel":
return Symbology.AustralianPosteParcel;
case "SwissPostParcel":
return Symbology.SwissPostParcel;
case "DatabarExpandedStacked":
return Symbology.DatabarExpandedStacked;
case "DatabarStacked":
return Symbology.DatabarStacked;
case "DatabarStackedOmniDirectional":
return Symbology.DatabarStackedOmniDirectional;
default:
return Symbology.Code128;
}
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b683f04

Please sign in to comment.