Using Barcode Generator for ASP.NET Control
How to generate, display, printing barcode label in c# asp.net without font. Free source code download.
Free demo source code to generate, display, print linear, 2d barcode labels in pdf, image files using c# in asp.net mvc project.
Compatibility & Requirement
- .NET Development Environments: Visual Studio 2005/2008/2010, .NET Version 2.0 or above, IIS (Microsoft Internet Information Services), C#.NET, VB. NET, or Borland Delphi
- Compatible Projects Types: ASP.NET Web Site, ASP.NET Web Services, Class Library and Console Application
- Compatible Operating Systems: Windows 2000, Windows XP, Windows Vista, Windows 2007, Windows Server 2003 and later versions
- Minimum System Requirements: 500MHZ processor, 128MB RAM, 5MB available hard drive space
- Microsoft Windows XP
- Microsoft Visual Studio 2005
- Visual C#.NET
KA.Barcode Generator for ASP.NET is a mature barcode SDK library that lets you print and stream dynamic linear and 2D barcode images in Microsoft Internet Information Services (IIS), ASP.NET websites or web applications in C#.NET IDEs. This walkthrough will show you how to generate barcodes for ASP.NET in Visual Studio by using free C#.NET Barcode Library with use-friendly interface.
This product is completely complied in the best C# programming code, which is compatible with commonly-used windows system. And C#.NET barcode generation sample code is provided for users. It is free to download this .NET Barcode Generation Control SDK trial version to test. It supports multiple linear and tow-dimensional barcodes generation. How to Generate Barcodes in ASP.NET Using C#.NET
Method 1: Drag and Drop Barcode to Web Forms in C#.NET
- Download KA.Barcode for ASP.NET trial package.
- Open Microsoft Visual Studio.
- Create a web application using the installed project templates in C# projects.
- Add BarcodeControl to your Visual Studio Toolbox.
- Copy "barcode.aspx" and "barcode.aspx.cs" to the folder where you generate barcode.
- Drag and Drop BarcodeControl to the Source Window.
- Right click Default.aspx, view code, and change barcode properties with following C# code.
C# Sample code
BarCode barcode = new BarCode(); barcode.Symbology = KeepAutomation.Barcode.Symbology.Code39ex; barcode.CodeToEncode = "Code 39"; barcode.X = 1; barcode.WideNarrowRatio = 3; barcode.Y = 40; barcode.I = 10; barcode.TopMargin = 10; barcode.BottomMargin = 10; barcode.LeftMargin = 10; barcode.RightMargin = 10; barcode.DisplayText = true; barcode.DisplayStartStop = true; barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel; barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree90; barcode.DPI = 72; barcode.ImageFormat = ImageFormat.Png; barcode.generateBarcodeToImageFile("C://barcode-code39ex-csharp.png");
Method 2: Build Click Event in Web Forms in C#.NET
- Open Microsoft Visual Studio.
- Create a web application using the installed project template in C# projects.
- Copy "barcode.aspx" and "barcode.aspx.cs" to the folder where you generate barcode.
- Add KeepAutomation.Barcode.Web.dll to the C# project reference.
- Drag and drop a button from the Toolbox to the form, and double-click the button.
- Select View Code at the Default.aspx.
- Copy the following sample code to your ASP.NET class project.
C# Sample code
BarCode barcode = new BarCode(); barcode.Symbology = KeepAutomation.Barcode.Symbology.QRCode; barcode.CodeToEncode = "325413"; barcode.X = 10; barcode.Y = 10; barcode.TopMargin = 10; barcode.BottomMargin = 10; barcode.LeftMargin = 10; barcode.RightMargin = 10; barcode.DisplayText = true; barcode.DisplayStartStop = true; barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel; barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree0; barcode.DPI = 72; barcode.ImageFormat = ImageFormat.Tiff; barcode.generateBarcodeToImageFile("C://barcode-qrcode-csharp.tiff"); |
CompatibilityTest EnvironmentASP.NET C# BarcodingHow To Start Using C#Using VB.NETData Matrix for ASP.NETPDF417 for ASP.NETQR Code for ASP.NETmoreCodabar for ASP.NETCode 39 for ASP.NETCode 128 for ASP.NETEAN-8 for ASP.NETEAN-13 for ASP.NETEAN 128 for ASP.NETIntelligent Mail for ASP.NETInterleaved 2 of 5 for ASP.NETISBN for ASP.NETITF-14 for ASP.NETRM4SCC for ASP.NETUPC-A for ASP.NETUPC-E for ASP.NETmore
|