// 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 }
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); }
// print the tree private void btnPrint_Click(object sender, System.EventArgs e) { flex.PrintGrid("FlexTree", PrintGridFlags.ShowPreviewDialog); }