Click or drag to resize

ExcelToPdfCSheetPrintedAreaAdd(String, String, Int32) Method

Adds custom area to export in PDF, Word

Namespace: SautinSoft
Assembly: SautinSoft.ExcelToPdf (in SautinSoft.ExcelToPdf.dll) Version: 2023.11.22
Syntax
public void Add(
	string Cord1,
	string Cord2,
	int[]? SheetNums = null
)

Parameters

Cord1  String
Top-Left cell of area, for example "A1"
Cord2  String
Right-Bottom cell of area, for example "E12"
SheetNums  Int32  (Optional)
Array with sheets numbers
Example
SautinSoft.ExcelToPdf x = new SautinSoft.ExcelToPdf();
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
int[] arJ = { 1 };
x.Sheets.PrintArea.Add("B20", "D25", arJ);
See Also