ByteScout Data Extraction Suite - C# - Hidden rows and columns with spreadsheet sdk - ByteScout

ByteScout Data Extraction Suite – C# – Hidden rows and columns with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – C# – Hidden rows and columns with spreadsheet sdk

hidden rows and columns with spreadsheet sdk in C# with ByteScout Data Extraction Suite

hidden rows and columns with spreadsheet sdk in C#

This page helps you to learn from code samples for programming in C#. ByteScout Data Extraction Suite helps with hidden rows and columns with spreadsheet sdk in C#. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

The below SDK samples describe how to quickly make your application do hidden rows and columns with spreadsheet sdk in C# with the help of ByteScout Data Extraction Suite. To use hidden rows and columns with spreadsheet sdk in your C# project or application just copy & paste the code and then run your app! Use of ByteScout Data Extraction Suite in C# is also described in the documentation included along with the product.

Trial version can be downloaded from our website for free. It contains this and other source code samples for C#.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System.Diagnostics; using System.IO; using Bytescout.Spreadsheet; namespace HiddenRowsAndColumns { class Program { static void Main(string[] args) { // Open spreadsheet from file Spreadsheet document = new Spreadsheet(); document.LoadFromFile("example.xls"); // Get first worksheet Worksheet worksheet = document.Workbook.Worksheets[0]; //Hide first three columns worksheet.Columns[0].Hidden = true; worksheet.Columns[1].Hidden = true; worksheet.Columns[2].Hidden = true; //Hide first three rows worksheet.Rows[0].Hidden = true; worksheet.Rows[1].Hidden = true; worksheet.Rows[2].Hidden = true; // Delete output file if exists if (File.Exists("changed.xls")) { File.Delete("changed.xls"); } // Save document document.SaveAs("changed.xls"); // Close spreadsheet document.Close(); // Open generated XLS document in default program Process.Start("changed.xls"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next