ExcelToPdfCSheetPrintedAreaAdd(String, String, Int32) Method |
Adds custom area to export in PDF, Word
Namespace: SautinSoftAssembly: SautinSoft.ExcelToPdf (in SautinSoft.ExcelToPdf.dll) Version: 2024.11.30
Syntaxpublic void Add(
string Cord1,
string Cord2,
int[]? SheetNums = null
)
Public Sub Add (
Cord1 As String,
Cord2 As String,
Optional SheetNums As Integer() = Nothing
)
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
ExampleSautinSoft.ExcelToPdf x = new SautinSoft.ExcelToPdf();
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
int[] arJ = { 1 };
x.Sheets.PrintArea.Add("B20", "D25", arJ);
Dim x As New SautinSoft.ExcelToPdf()
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
Dim arJ() As Integer = { 1 }
x.Sheets.PrintArea.Add("B20", "D25", arJ)
See Also