Code 39 Barcode FAQ for ASP.NET

ASP.NET Web Server Control Generator, Code 39 Barcode Image, Data, and Size Issues
Terrek Barcode for ASP.NET - Code 39 Barcode FAQ
Code 39 ASP.NET Server Control is a Code 39 specified barcode generator designed for the ASP.NET development. The generator is a robust server control with Code 39 encoding and printing capabilities. The generation of extended Code 39 is supported. Free code samples in C# and VB are presented.
This walkthrough page introduces the following aspects of Code 39 generation:
  • Code 39 Generation in ASP.NET Applications - Data Encoding Support
  • Code 39 Generation in ASP.NET Applications - Barcode Scaling Support
  • Code 39 Generation in ASP.NET Applications - Image Setting Support
  • Code 39 Generation in ASP.NET Applications - Solution Projects Support
Except for ASP.NET, Terrek also provides specified Code 39 barcode generators for solutions in distinct developing environments, such as Code 39 .NET Control, Code 39 SSRS CRI, Code 39 Java SDK, &Code 39 Excel Add-in.
Code 39 Generation in ASP.NET Applications - Data Encoding Support
Code 39 Valid Data
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Uppercase letters (A - Z)
  • - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&BarcodeData = CODE 39;
Extended Code 39
Extended Code 39 encodes lowercase letters except for Code 39 code set. With Code 39 ASP.NET Server Control, the generation of extended Code 39 becomes easy.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=4&BarcodeData = Code 39;
Code 39 Generation in ASP.NET Applications - Barcode Scaling Support
Bar Size
BarHeight is used for the adjustment of bar height; the width of narrow bar is managed by BarWidth and the width of the wide bar is influenced by BarWidth and WideVSNarrow.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&BarWidth=2&WideVSNarrow=3&BarHeight=50;
Inter-character Space
The width of gaps between two characters in Code 39 could be adjusted with InterCharGap. It is a multiple of X.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&InterCharGap=2;
Margins Width
Increasing the width of margins around the symbol is one way to enhance the readability of the Code 39 barcode image. The control library set the left, right, top, and bottom margins separately with float values.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&MarginL=10& MarginR=10& MarginT=10& MarginB=10;
Image Size
If the breakdown parameters are unknown, you can set the width and height of the barcode image directly. Once you enabled the image resize function, you only need to provide the size of entire barcode image. This intelligent Code 39 will draw the barcode with reasonable parameters. The generated Code 39 is 100% compatible with ISO / IEC 16388 (2nd edition 2007-05-15).
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&ImageResize=true&ImageWidth=150&ImageHeight=50;
Code 39 Generation in ASP.NET Applications - Image Setting Support
Image Formats
With Terrek Barcode ASP.NET Control DLL, Code 39 is created as high quality GIF, JPEG, or PNG graphic images. Tiff and Bitmap are supported as well. Please ensure the accordance of image format and suffix of image file name.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&ImageFormat=Png;
Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by Code 39 generator could be managed with DPI.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&DotsPerInch=96;
Image Rotation
In case of any specified requirement of the image orientation, image rotation function is added to the control library. Rotation angles of 90, 180, and 270 degrees are supported.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=3&Rotation=Degree90;
Code 39 Generation in ASP.NET Applications - Solution Projects Support
Code 39 Barcode ASP.NET Library &DLL integrates with the following types of projects:
  • ASP.NET Web Site (design-time and runtime support)
  • .NET Web Service Project (runtime support)
  • Console Application (runtime support)
  • Class Library (runtime support)