Click here to Skip to main content
15,917,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is the code for barcode generation. Please tell how can I display barcode on form.
C#
private void GenerateBacode(string _data, string _filename)
{
    Linear barcode = new Linear();
    barcode.Type = BarcodeType.CODE11;
    barcode.Data = _data;
    barcode.drawBarcode(_filename);
}
private void GenerateQrcode(string _data, string _filename)
{
    QRCode qrcode = new QRCode();
    qrcode.Data = _data;
    qrcode.DataMode = QRCodeDataMode.Byte;
    qrcode.UOM = UnitOfMeasure.PIXEL;
    qrcode.X = 3;
    qrcode.LeftMargin = 0;
    qrcode.RightMargin = 0;
    qrcode.TopMargin = 0;
    qrcode.BottomMargin = 0;
    qrcode.Resolution = 72;
    qrcode.Rotate = Rotate.Rotate0;
    qrcode.ImageFormat = ImageFormat.Gif;
    qrcode.drawBarcode(_filename);
}
Posted
v2
Comments
OriginalGriff 28-Feb-13 6:06am    
That will depend on what you are using to generate the code - if the package you have oicked only outputs to a file, then you will have to load the file, and display it. If it can do it to a stream then you can use that instead.

1 solution

Hope this will help you: WPF Barcode Software[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900