Adds custom area to export in PDF, Word

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

Syntax

      
 C#  Visual Basic 
public void Custom(
	int[] _sheetnums,
	string cord1,
	string cord2
)
Public Sub Custom ( _
	_sheetnums As Integer(), _
	cord1 As String, _
	cord2 As String _
)

Parameters

_sheetnums
array< Int32 >[]()[]
Array with sheets numbers
cord1
String
Top-Left cell of area, for example "A1"
cord2
String
Right-Bottom cell of area, for example "E12"

Remarks

Examples

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

See Also