This is a simple library that lets you do one thing very easily: generate an
Code128, on the other hand, has out-of-the-box support for all 128 low-order ASCII characters.
Image for a Code128 BARCODE with a single line of code.Code128, on the other hand, has out-of-the-box support for all 128 low-order ASCII characters.
Basic usage
Create MVC web application. Below code add to the View which it will take input string and one button to generate BarCode Image.
Now Add the below code in controller (HTTPPOST). Here get the entered text and send that text to
Code128Rendering.MakeBarcodeImage(Bacodetext.Trim(), int.Parse(txtWeight), true)
Method which it will take the input as
There are three parameters:
string InputData:The message to be encodedint BarWeight:The baseline width of the bars in the output. Usually, 1 or 2 is good.bool AddQuietZone:Iffalse, omits the required white space at the start and end of the barcode. If your layout doesn't already provide good margins around theImage, you should usetrue
You can save the images in folder location different type (.bmp/ .png / .jpeg)



Sameh AwwadPosted Jun 18, 2018, 2:57 PM
Sorry if this is a stupid question how to pass the parameters with ajax, and how to print the barcode image?