예제 #1
0
        protected override void Print()
        {
            base.Print();

            var gridPrintUtils = new GridUtils <T>(MasterPage.GridPrint, this);

            gridPrintUtils.GenerateColumns();
            gridPrintUtils.Reset();

            gridPrintUtils.CopyColumns(Grid);

            try
            {
                gridPrintUtils.Bind();

                UpdatePanelPrint.Update();

                var sh = new ScriptHelper(this);

                sh.RegisterStartupScript("print", "PrintReport();");
            }
            catch (Exception ex) { ShowError(ex); }
        }