Exemplo n.º 1
0
        private void frmTasarim_Load(object sender, EventArgs e)
        {
            XtraReport report = new etiketX();

            if (File.Exists(this.yol))
            {
                report.LoadLayout(this.yol);
            }

            this.reportDesigner1.OpenReport(report);
        }
Exemplo n.º 2
0
        private void HepsiniBas(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            using (new WaitIndicator())
            {
                etiketX report = new etiketX();

                if (File.Exists(e.Item.Name))
                {
                    report.LoadLayout(e.Item.Name);
                }

                report.bindingSource1.DataSource = this.liste;

                ReportPrintTool tool = new ReportPrintTool(report);
                tool.ShowPreview();
            }
        }
Exemplo n.º 3
0
        private void SecileniBas(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int[] secilenler = gridView1.GetSelectedRows();
            if (secilenler.Length > 0)
            {
                using (new WaitIndicator())
                {
                    List <Satislar> yeniListe = new List <Satislar>();
                    foreach (int i in secilenler)
                    {
                        frmBaski   b    = new frmBaski();
                        GridColumn col  = gridView1.GetVisibleColumn(1);
                        string     urun = gridView1.GetRowCellDisplayText(i, col);

                        Satislar s = this.liste.Find(x => x.urun == urun);
                        if (s != null)
                        {
                            yeniListe.Add(s);
                        }
                    }

                    etiketX report = new etiketX();

                    //fatura yolunu bulalım

                    if (File.Exists(e.Item.Name))
                    {
                        report.LoadLayout(e.Item.Name);
                    }

                    report.bindingSource1.DataSource = yeniListe;

                    ReportPrintTool tool = new ReportPrintTool(report);
                    tool.ShowPreview();
                }
            }
            else
            {
                MessageBox.Show("Seçili bir etiket bilgisi bulunmuyor.");
            }
        }
Exemplo n.º 4
0
        private void barButtonItem2_ItemClick_2(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            using (new WaitIndicator())
            {
                etiketX report = new etiketX();

                string klasor = Directory.GetCurrentDirectory();

                //fatura yolunu bulalım
                string yol = klasor + @"\etiketX.repx";

                if (File.Exists(yol))
                {
                    report.LoadLayout(yol);
                }

                report.bindingSource1.DataSource = this.liste;

                ReportPrintTool tool = new ReportPrintTool(report);
                tool.ShowPreview();
            }
        }