Skip to main content

Класс PrintingScope

Класс****PrintingScope содержит настройки для экспорта табличных документов. Используется в поле printingScope класса WorkbookExportSettings.

Позволяет создать области печати следующих типов:

  • выбранная область печати либо весь документ (см. PrintingScope.Type);
  • указанный диапазон ячеек (см. CellRangePosition).

Примеры​


// по умолчанию - PrintingScope.Type.PrintArea
PrintingScope printingScope = new PrintingScope();

// область печати
PrintingScope printingScope = new PrintingScope(PrintingScope.Type.PrintArea);

// диапазон ячеек
CellRangePosition cellRangePosition = new CellRangePosition(0, 0, 5, 5);
PrintingScope printingScope = new PrintingScope(cellRangePosition);