Example #1
0
        private void navBarKisilerListesi_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            SiteDBEntities2 db   = new SiteDBEntities2();
            XtraReport1     rpt  = new XtraReport1();
            var             list = db.S_KisilerListesi().ToList();

            rpt.DataSource = list;
            using (ReportPrintTool printTool = new ReportPrintTool(rpt))
            {
                // Invoke the Print Preview form modally,
                // and load the report document into it.
                printTool.ShowPreviewDialog();
                Cursor.Current = Cursors.Default;
                // Invoke the Print Preview form
                // with the specified look and feel setting.
                //printTool.ShowPreviewDialog(UserLookAndFeel.Default);
            }
        }