News & Releases

Minimize
Nasosoft Components for .NET v5.4.0 Released - Friday, September 06, 2013

Nasosoft Component for .NET v5.4.0 has released with many improvements.

What's new

Nasosoft Excel for .NET   
  • Bug Fixes

 

 

Nasosoft Excel for .NET

   Minimize
Page Breaks
 
Add a Page Breaks
Code Sample
[C#]
 
//'Create a Workbook object
XlsWorkbook workbook = new XlsWorkbook();
 
//Add a page break at cell D20
workbook.Worksheets[0].HPageBreaks.Add("D20");
workbook.Worksheets[0].VPageBreaks.Add("D20");
 
[VB.NET]
 
'Create a Workbook object
Dim workbook As XlsWorkbook = New XlsWorkbook()
 
'Add a page break at cell D20
workbook.Worksheets(0).HPageBreaks.Add("D20")
workbook.Worksheets(0).VPageBreaks.Add("D20")
 
Remove a Page Break
Code Sample
[C#]
 
//Create a Workbook object
XlsWorkbook workbook = new XlsWorkbook();
 
//Removing a page break
workbook.Worksheets[0].HPageBreaks.RemoveAt(0);
workbook.Worksheets[0].VPageBreaks.RemoveAt(0);
 
[VB.NET]
 
' Create a Workbook object
Dim workbook As XlsWorkbook = New XlsWorkbook()
 
'Removing a specific page break
workbook.Worksheets(0).HPageBreaks.RemoveAt(0)
workbook.Worksheets(0).VPageBreaks.RemoveAt(0)