Adds custom area to export in PDF, Word

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

Syntax

      
 C#  Visual Basic 
public void Add(
	string Cord1,
	string Cord2,
	int[] SheetNums
)
Public Sub Add ( _
	Cord1 As String, _
	Cord2 As String, _
	SheetNums As Integer() _
)

Parameters

Cord1
String
Top-Left cell of area, for example "A1"
Cord2
String
Right-Bottom cell of area, for example "E12"
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("B20", "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("B20", "D25", arJ)

See Also