I want to convert a text string entered in a TextBox
to a barcode, but it has an error:
Error: No se puede convertir implicitamente el tipo 'System.Drawing.image' en 'String'
I use the following instruction:
libraries:
using BarcodeLib;
using System.Drawing;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
protected void ButtonGenereBarra_Click(object sender, ImageClickEventArgs e)
{
BarcodeLib.Barcode Codigobar = new BarcodeLib.Barcode();
Codigobar.IncludeLabel = true;
panelResult.BackImageUrl = Codigobar.Encode(BarcodeLib.TYPE.CODE128, TextBoxLeerSerial.Text, Color.Black, Color.White, 400, 100);
}
Any ideas of how I can do it or how I can be failing?