Adds custom area to export in PDF, Word by column and row numbers.

Namespace:  SautinSoft
Assembly:  SautinSoft.ExcelToPdf (in SautinSoft.ExcelToPdf.dll) Version: 5.1.7.22

Syntax

      
 C#  Visual Basic 
public void Add(
	int Col1,
	int Row1,
	int Col2,
	int Row2,
	int[] SheetNums
)
Public Sub Add ( _
	Col1 As Integer, _
	Row1 As Integer, _
	Col2 As Integer, _
	Row2 As Integer, _
	SheetNums As Integer() _
)

Parameters

Col1
Int32
Top cell number
Row1
Int32
Top row number
Col2
Int32
Bottom cell number
Row2
Int32
Bottom row number
SheetNums
array< Int32 >[]()[]
Array with sheets numbers

Remarks

Examples

CopyC#
SautinSoft.ExcelToPdf x = new SautinSoft.ExcelToPdf();
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
int[] arJ = { 1 };
x.Sheets.PrintArea.Add(1, 20, 4, 25, arJ); // same as x.Sheets.PrintArea.Add("A20", "D25", arJ);
CopyVB.NET
Dim x As New SautinSoft.ExcelToPdf()
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
Dim arJ() As Integer = { 1 }
x.Sheets.PrintArea.Add(20, 1, 25, 4, arJ)

See Also