<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/05/2013 12:10:35" ReportInfo.Modified="11/05/2013 12:14:27" ReportInfo.CreatorVersion="2013.3.2.0">
  <ScriptText>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;

namespace FastReport
{
  public class ReportScript
  {

    private void Data1_BeforePrint(object sender, EventArgs e)
    {
      if(((String)Report.GetColumnValue(&quot;QBaslik.BARCODE&quot;)).Length ==13)
      {
        Barcode1.Barcode =  new BarcodeEAN13();
      }
      else if (((String)Report.GetColumnValue(&quot;QBaslik.BARCODE&quot;)).Length ==8)
      {
        Barcode1.Barcode =  new BarcodeEAN8();
      }
      else
      {
        Barcode1.Barcode = new  Barcode93();
      }
    }
  }
}
</ScriptText>
  <Dictionary>
    <TableDataSource Name="QBaslik" ReferenceName="QBaslik" DataType="System.Int32" Enabled="true">
      <Column Name="MIKTAR" DataType="System.Int32"/>
      <Column Name="STOCKNO" DataType="System.String"/>
      <Column Name="STOCKNAME" DataType="System.String"/>
      <Column Name="PRICE" DataType="System.Double"/>
      <Column Name="UNITNAME" DataType="System.String"/>
      <Column Name="BARCODE" DataType="System.String"/>
    </TableDataSource>
  </Dictionary>
  <ReportPage Name="Page1" PaperWidth="40" PaperHeight="20" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" MirrorMargins="true">
    <DataBand Name="Data1" Width="151.2" Height="75.6" BeforePrintEvent="Data1_BeforePrint" DataSource="QBaslik">
      <TextObject Name="Text1" Width="151.2" Height="28.35" Text="[QBaslik.STOCKNAME]"/>
      <BarcodeObject Name="Barcode1" Left="1" Top="31.35" Width="128.75" Height="47.25" DataColumn="QBaslik.BARCODE" Barcode="EAN13"/>
    </DataBand>
  </ReportPage>
</Report>
