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

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

Syntax

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

Parameters

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

Remarks

Examples

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

See Also