예제 #1
0
        // print the tree
        private void btnPrint_Click(object sender, System.EventArgs e)
        {
#if not_C1FlexGridPrinter
            flex.PrintGrid("FlexTree", PrintGridFlags.ShowPreviewDialog);
#else
            C1FlexGridPrinter printer = new C1FlexGridPrinter(flex);
            printer.PrintPreview();
#endif
        }
예제 #2
0
        private void _btnPrint_Click(object sender, System.EventArgs e)
        {
            PrintDocument pd = _flex.PrintParameters.PrintDocument;

            pd.DefaultPageSettings.Landscape = true;
            Margins m = pd.DefaultPageSettings.Margins;

            m.Left   = 25;
            m.Right  = 25;
            m.Top    = 25;
            m.Bottom = 25;
            _flex.PrintGrid("Subtotals",
                            PrintGridFlags.ShowPreviewDialog |
                            PrintGridFlags.FitToPage);
        }
예제 #3
0
 // print the tree
 private void btnPrint_Click(object sender, System.EventArgs e)
 {
     flex.PrintGrid("FlexTree", PrintGridFlags.ShowPreviewDialog);
 }