C# Excel - Delete Excel Document Page in C#.NET
Provides Users with Mature Document Manipulating Function for Deleting Excel Pages
Overview
C#.NET Excel document page deleting library control (XDoc.Excel) can be easily integrated into any C#.NET class applications to delete any unnecessary page from target existing Excel document file.
vb.net pdf generator free,
page break in pdf using itextsharp c#,
asp.net pdf editor,
vb.net itextsharp convert pdf to image,
vb.net pdf viewer component,
convert tiff to pdf c# itextsharp.
Using RasterEdge Visual C# .NET Excel page deletion component, developers can easily select one or more Excel pages and delete it/them in both .NET web and Windows applications.
Related .net document control helps:
asp.net edit pdf text control:
ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net pdf viewer control free: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net sharepoint document viewer control: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net mvc image viewer: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
asp.net mvc display tiff: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net dicom library: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
C#.NET Excel page removing & deleting library control SDK is a mature component on the market, which can also provides other Excel document page processing functions, such as Excel document merging function, Excel page rotating function, Excel page insert function, Excel page reordering function and Excel document splitting function.
vb.net pdf converter,
c# parse pdf itextsharp,
vb.net read pdf file itextsharp,
c# get pdf font,
convert jpg to pdf vb.net,
c# pdf metadata,
add watermark to pdf vb.net.
This tutorial offers three pieces of C# sample codes for Excel page(s) deletion. XDoc.Excel enables you to delete Excel page(s) with customized options, including setting a single page, a series of pages, and random pages to be removed from Excel file.
pdf viewer for asp.net web application,
mvc display pdf in view,
how to edit pdf file in asp.net c#,
asp.net pdf preview,
asp.net core open word document,
asp.net add text to pdf file,
asp.net web image viewer.
C# DLLs: Delete Page from Excel Document
Add necessary references:
RasterEdge.Imaging.Basic.dll
RasterEdge.XDoc.Office.Inner.Common.dll
RasterEdge.Imaging.Drawing.dll
RasterEdge.Imaging.Processing.dll
RasterEdge.XDoc.Office.Inner.Office03.dll
RasterEdge.Imaging.Font.dll
RasterEdge.XDoc.Excel.dll
RasterEdge.XImage.Raster.Core.dll
RasterEdge.XImage.Raster.dll
Using namespaces:
using RasterEdge.Imaging.Basic;
using RasterEdge.XDoc.Excel;
Delete a Single Excel Page from Excel File in C#
How to delete a single page from a Excel document.
String filepath = @"";
String outPutFilePath = @"";
XLSXDocument doc = new XLSXDocument(filepath);
// Detele page 2 (actually the third page).
doc.DeletePage(2);
// Save the file.
doc.Save(outPutFilePath);
|
Delete Consecutive Pages from Excel in C#
How to delete a range of pages from a Excel document.
String filepath = @"";
String outPutFilePath = @"";
XLSXDocument doc = new XLSXDocument(filepath);
// Detele a series of 3 pages, starting from the second page.
doc.DeletePages(1, 3);
// Save the file.
doc.Save(outPutFilePath);
|
Delete Specified Pages from Excel in C#
How to delete several defined pages from a Excel document.
String filepath = @"";
String outPutFilePath = @"";
XLSXDocument doc = new XLSXDocument(filepath);
// Get PageIndexes.
int[] detelePageindexes = new int[] { 1, 3, 5, 7, 9 };
// Delete pages.
doc.DeletePages(detelePageindexes);
// Save the file.
doc.Save(outPutFilePath);
|