Generating Barcodes in C# For .Net Application.

judy000
@judy000-gZvWS6 โ€ข Oct 26, 2024

I am recently leaning <a href="https://www.keepautomation.com/guide/csharp_barcode_generator.html" target="_blank" rel="nofollow noopener noreferrer">C# Barcode Generator: how to create, generate, print barcode label image using c# in asp.net mvc, windows application. Free download with open source example.</a>. And below is my C# code. Could you help me check what's the problem it has for an error occurred when debugging. Thank you so much.

using KeepAutomation.Barcode.Bean;
 
BarCode barcode = new BarCode();
barcode.Symbology = KeepAutomation.Barcode.Symbology.Code39;
barcode.CodeToEncode = "111222333";
barcode.ChecksumEnabled = true;
barcode.X = "6";
barcode.Y = "50";
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
barcode.generateBarcodeToImageFile("C://barcode-code39-csharp.gif");

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • simplycoder

    @simplycoder-NsBEdD • Jun 8, 2013

    Hi and Welcome to CE.

    What error are you getting?
    Have you stepped through your code using a debugger?
    Can you please provide more details something like stack-trace or similar

  • Nana Klinton

    @nana-klinton-2tlWum • Jan 26, 2014

    HI there
    Thanks for your useful information.It is difficult to generate barcode code 39 using a code.W

    hy don't you just google a barcode generater to help you out?

    That would be more convenient.Best wishes.