Spire.Barcode is a professional barcode library specially designed for .NET developers (C#, VB.NET, ASP.NET, .NET Core) and Java developers (J2SE and J2EE) to generate, read and scan 1D & 2D barcodes.

Tue Sep 30, 2014 11:30 am

Hello,

i am new her, i want to generate Barcode EAN 13 and print this on a Zebra Printer.
I need a description for spire.barcode "first steps" i have installed Version spire.barcode 1.2.5 what is the next step where can i find Barcode - DLL? What are the steps in visual studio?

Thanks

dakramar@gmail.com
 
Posts: 3
Joined: Tue Sep 30, 2014 11:20 am

Wed Oct 01, 2014 3:43 am

Dear dakramar,

Thanks for your inquiry.

After the installation, you can find the barcode dll like this path: ..\spire.barcode\Bin\NET4.0\
And to add it the visual studio:
1.Open the ToolBox
2.Right Click to Add a new Tab
3.Right Click to Choose Item in the new Tab
4.Click Browse and find the barcode dll
5.Add it.
Then you can see the BarcdoControl in your ToolBox

Best regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Fri Oct 03, 2014 5:24 pm

Hello,

Thank you for reply

I will try it.

Thanks

Daniel

dakramar@gmail.com
 
Posts: 3
Joined: Tue Sep 30, 2014 11:20 am

Fri Oct 03, 2014 5:42 pm

Hello,

did you have maybe description how i can print a Barcode for example on a Zebra Printer?

Thanks

dakramar@gmail.com
 
Posts: 3
Joined: Tue Sep 30, 2014 11:20 am

Mon Oct 06, 2014 6:43 am

Hello,

Sorry that our product doesn't directly provide the method to print barcode, so it needs to be customized by ourself, and for your reference, I paste some code of print() function below.
Code: Select all
class Program
    {
        static void Main(string[] args)
        {
            Print();

        }
        public static void Print()
        {
            PrintDocument doc = new PrintDocument();
            doc.PrinterSettings.PrinterName = "Zebra Printer";
            doc.PrintPage += new PrintPageEventHandler(Doc_PrintPage);
            doc.Print();
        }
        private static void Doc_PrintPage(object sender, PrintPageEventArgs e)
        {
            BarcodeSettings seting = new BarcodeSettings();
            seting.Type = BarCodeType.EAN13;
            seting.Data = "123456";
            BarCodeGenerator ger = new BarCodeGenerator(seting);
            Image BarCodeImage = ger.GenerateImage();
            e.Graphics.DrawImage(BarCodeImage, 0, 0);
        }
    }

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Oct 08, 2014 9:25 am

Hello,

If your application is winform, you could use the following method.
Code: Select all
this.barCodeControl1.print();


Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.BarCode