Category Archives: Utils

Free DLL to generate image barcodes

Hi guys!

I have developed this simple dll for the barcode printing / representation, the use is very simple :




this is the code of the sample form:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BarcodeFree;

namespace WindowsFormsApplication1
    public partial class Form1 : Form
        public Form1()

        private void button1_Click(object sender, EventArgs e)
           Code128 text = new Code128();
            this.textBox2.Text = text.Encode( textBox1.Text);
            ImageBarcode barcode, barcode2, barcode3, barcode4;
            //parameters to call ImageBarcode:
            //public ImageBarcode(int width, int height, string value, bool Landscape = false, Color? color = null,Color? colorFore=null )
            barcode = new ImageBarcode(pictureBox1.Width, pictureBox1.Height, textBox2.Text);
            barcode2 = new ImageBarcode(pictureBox2.Width, pictureBox2.Height, textBox2.Text, false, Color.Red, Color.Yellow );
            barcode3 = new ImageBarcode(pictureBox3.Width, pictureBox3.Height, textBox2.Text, true);
            barcode4 = new ImageBarcode(pictureBox4.Width, pictureBox4.Height, textBox2.Text, false, Color.Turquoise , Color.LightGray);
//            barcode = new ImageBarcode(250, 112, textBox2.Text);
            this.pictureBox1.Image = barcode.GenerateImage();
            this.pictureBox2.Image = barcode2.GenerateImage();
            this.pictureBox3.Image = barcode3.GenerateImage();
            this.pictureBox4.Image = barcode4.GenerateImage();
//            this.pictureBox1.Refresh();

And Finally the DLL( for demo test):



Some documentation about barcodes:


especially thanks to:


Read More ...

How to make an ajax call inside a WordPress site

After several days, finally I found how to make ajax call from my wordpress site, I hope that it will help those who have had this problem:

first, I was created a post inside a wordpress whit this html code:

<section id="main">
    <table id="tng" class="datagrid">
    	<thead><tr><th colspan="3"> 
            Sample ping App
    		<td width="50%" align="right"><b>Host or IP:</b></td>
    		<td><input  id="ip" size="20" value="" ></td>
                <td><button type="button" onclick="PING()">Ping</button></td>
    <img id="image" src="spinner.gif" alt="wait..." style="display: none;">
<section id=food>
	<h3 id="notification"></h3>

As you can see the only important thing is the onclick event for the button that calls de functionPING()


Read More ...

Robocopy copy only rights

A usefull command to copy only rights or permissions from one source to another is:
robocopy \\server\sharedfolder f:\folder /E /Copy:S /IS /IT


Read More ...

IBAN calculator from CCC

For Europe Users:
This form if for calculate IBAN for a multiple accounts (20) digits
and check the digit control of the account too
only paste yours CCC and the  IBAN is placed in a milisecond

if this link is usefull for you, pelase share it.


Read More ...

Print EAN128 Barcodes with Crystal Reports only

Is possible to create one report with Crystal Reports that includes Barcodes and no need to buy expensive fonts or dll to print encoded values EAN128.
You only need one code 128 font , I recommend this:


where is the trick?

The result:

How it’s made?
realy simple:
First you need to know the table of AI (Application Identifier) and his lengths, and if the lenght of the values are fixed or variable, and if they needs checksum.

there is a complete guide to know about this.

in the sample of the botton first AI (SSCC) needs checksum.
I was created 2 functions in the label:

Label functions

then simply call the function Ean128 to generate the barcode, and assigns the font Code128:

call function

If you are interested in the sample label, pease contact me:


Read More ...


Subscribe to my Newsletter