ASP.NET Barcode Installation
Extract the zip file received and copy them to the webserver where ASP.NET is enabled. Verify that the default barcode appears by opening a browser window, and entering the barcode generator URL. For example: https://www.yourdomain.com/precisionid-code128.aspx
ASP.NET Barcode Support Integration Examples:
HTML Example:
<img src= "https://www.yourdomain.com/precisionid-code128.aspx?D=variable">
ASPX Example:
<P>Pure ASPX Barcode Generation Example:</P> <% @ LANGUAGE=VBScript%> <% Data="pure-aspx-barcode"%> <img src="<%="precisionid-code128.aspx?D="&Data%>" </P></body> </HTML>
JavaScript Example:
<SCRIPT LANGUAGE="JavaScript"> function display() { DispWin = window.open('','NewWin','menubar=yes,status=no,width=650,height=780') message="<HTML><HEAD><TITLE>Native ASP.NET Barcode Generator Tutorial</TITLE></HEAD><BODY>" message+="<img src='https://www.yourdomain.com/precisionid-code128.aspx?D=" message+=document.form1.DataField.value; message+="'><BR></p></BODY></HTML>" DispWin.document.write(message); DispWin.document.close(); } </SCRIPT>
Barcode Parameters
The following properties can be changed to set the barcode output that is desired. After specifying the ASPX symbology file, the question mark ‘?’ is used before the first parameter and the ampersand ‘&’ is used for additional parameters.
For example, the following sets several parameters for Code39:
precisionid-code39.aspx?D=ASPX-BARCODE&C=F&N=3&X=2&O=270&H=65
Property | Parameter | Default Value | Description |
All Symbologies | |||
Apply Tilde | A | F | When ApplyTilde is True in Code 128 with the Auto character set, the format ~??? may be used to specify an ASCII code of a character that is encoded. For example, the data of “ASPX~009Barcode” would encode “ASPX [TAB] Barcode”. This Parameter is only valid in precisionid-code128.aspx |
Bar Height | H | 40 | The height of the barcode in pixels. |
Check Character | C | T | Automatically adds the check digit to the barcode when equal to ‘T’. |
Check Character in Text | CT | T | Automatically adds the check digit that is encoded in the barcode to the human readable text that is displayed when equal to ‘T’. |
Data Encoded | D | 123456789012 | The data that is to be encoded in the barcode symbol. |
Narrow to Wide Ratio | N | 2 | The narrow to wide ratio of symbologies that only contain narrow and wide bars such as Code 39, Interleaved 2 of 5 and MSI. Valid values are 2 and 3. |
Orientation | O | 0 | Orientation indicates the orientation of the barcode. Valid values are 0, 90, 180 and 270. |
ShowText | T | T | If set to ‘F’, the human readable text interpretation will not be displayed with the barcode. The number of pixels to determine the overall barcode width. |
XDimension in Pixels | X | 1 | The number of pixels to determine the overall barcode width. Default = 1 which is 1/96 of an inch and about 12 MILS. |
Font Size | S | 12 | The font size used for human readable text. Only values of 10 and 12 are applicable. Any other values must be implemented manually by displaying a text field below the barcode. |
Image Type | I | BMP | The image type streamed. Valid values are BMP, PNG, JPG and JPEG. The BMP image type has a 1 bit depth and is usually smaller i n size than PNG or JPEG images. |
Narrow to Wide Ratio | N | 2 | The narrow- to- wide ratio of symbologies that only cont ain narrow and wide bars such as Code 39, Interleaved 2 of 5 and MSI. Valid values are 2 and 3 only . |
Orientation | O | 0 | The orientation of the barcode. Valid values are 0, 90, 180 and 270. |
Quiet Zone | Q | 1 | The margin around the symbol. |
ShowText | ST | T | If set to F, the human – readable text interpretation will not be displayed with the barcode. |
XDimension in pixels | X | 1 | The number of pixels to define the overall barcode size. Default = 1 which is 1/96 of an inch and about 12 MILS or .03CM. Valid values are 1 – 8. |
DataBar | |||
Segments | SG | 6 | Common values are 4, 6, 8 and 22. The setting of 22 disables the stacked capability. |
Data Matrix | |||
Process Tilde | PT | T | When set to “F”, the tilde “~” functionality will not be processed. When enabled, ~1 encodes the FNC1 and ~d??? encodes an ASCII character where ??? is the three digit ASCII code. |
Encoding Mode | MODE | 0 | The Encoding Mode for data being encoded. Valid parameters are 0=BASE256, 1=C40, 2=TEXT and 3=ASCII. To encode GS1- DataMatrix , ensure MODE is set to “3”, the default. |
Preferred Format | PFMT | 0 | Sets the preferred format ; valid values are from 1 (10X10) to 24 (144X144) and from 25 (8X18) to 30 (16X48); the default value of ‘0’ is used for automatic formatting. If the component needs more space to create the symbol, this property will be ignored. |
PDF417 | |||
Apply Tilde | PT | T | When true, the format ~??? may be used to specify the ASCII code of the character to be encoded. |
Columns | COL | 0 | The number of data columns in the symbol. 0 = automatic. |
Error Correction Level |
ECL | 0 | The amount of error correction in the symbol. The default setting of 0 performs automatic selection. |
Mode | MODE | B | The mode of compaction used to encode data in the symbol. Valid values are “B” for Binary or “T” for TEXT. |
Truncation | TRN | F | A truncated PDF417 symbol is more area efficient. |
X to Y Ratio | XYR | 3 | The X multiple height of individual cells. |
QR-Code | |||
Process Tilde | PT | T | When set to “F”, the tilde “~” functionality will not be processed. When enabled, ~1 encodes the FNC1 and ~d??? encodes an ASCII character where ??? is the three digit ASCII code. |
Error Correction Level | ECL | M | The level of error correction. Valid values are L, M, Q & H. |
Encoding Mode |
MODE | B | The Encoding Mode. Valid values are B (binary), A (alphanumeric) and N (numeric). |
Process Mask | PM | T | When set to F the mask is not optimized, which will improve processing time when generating many barcodes at the same time. |
Version | V | 1 | The version of the symbol. Setting this value to – 3 can generate a Micro QR Code symbol. |