public static void Print(this RadGridView grid, PrintSettings settings) { spreadsheet.Workbook = CreateWorkbook(grid, settings); PrintWhatSettings printWhatSettings = new PrintWhatSettings(ExportWhat.ActiveSheet, false); spreadsheet.Print(printWhatSettings); }
private void PrintMethodSilverlight() { #region radspreadsheet-ui-printing_0 PrintWhatSettings printWhatSettings = new PrintWhatSettings(ExportWhat.ActiveSheet, false); this.radSpreadsheet.Print(printWhatSettings); #endregion }
private void PrintMethod() { #region radspreadsheet-ui-print-method-example_0 PrintWhatSettings printWhatSettings = new PrintWhatSettings(PrintWhat.ActiveSheet, false); // Prints showing the print dialog. this.radSpreadsheet.Print(printWhatSettings); // Prints silently to the default printer without showing the print dialog. this.radSpreadsheet.Print(printWhatSettings, new PrintDialog()); #endregion }