using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
using System.IO;
namespace FastReport
{
public class ReportScript
{
private void Picture1_BeforePrint(object sender, EventArgs e)
{
string imgStr= ((String)Report.GetColumnValue("testRequestes.barcodeImg"));
//MessageBox.Show("1");
if (string.IsNullOrEmpty(imgStr))
{
Picture1.Visible=false;
return;
}
byte[] imgData=Convert.FromBase64String(imgStr);
MemoryStream ms = new MemoryStream(imgData);
Image img = System.Drawing.Image.FromStream(ms);
Picture1.Image=img;
}
}
}