コード例 #1
0
        public static XtraReport BindReport(uint fileID, DataSet data)
        {
            using (var db = DB.GetContext())
            {
                var file = db.FileObjects.Where(f => f.FileID == fileID).FirstOrDefault();

                return(ReportBinder.BindReport(new ReportFile(data, file.FileBlob)));
            }
        }
コード例 #2
0
        public static void ShowReport(ReportFile report)
        {
            var xtraRep = ReportBinder.BindReport(report);

            xtraRep.ShowPreviewDialog();
        }