ByteScout Spreadsheet SDK - C# - Change Cell Width and Height - ByteScout

ByteScout Spreadsheet SDK – C# – Change Cell Width and Height

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Change Cell Width and Height

How to change cell width and height in C# with ByteScout Spreadsheet SDK

This code in C# shows how to change cell width and height with this how to tutorial

Learn how to change cell width and height in C# with this source code sample. ByteScout Spreadsheet SDK can change cell width and height. It can be used from C#. ByteScout Spreadsheet SDK is the SDK to create, read, modify and calculate spreadsheets. Formula calculations are supported, import and export to and from JSON, CSV, XML, databases, arrays.

C# code samples for C# developers help to speed up coding of your application when using ByteScout Spreadsheet SDK. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample C# codes.

Trial version of ByteScout Spreadsheet SDK can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.

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; using System.Collections.Generic; using System.Text; using Bytescout.Spreadsheet; using System.Diagnostics; using System.IO; namespace Change_cell_width_and_height { class Program { static void Main(string[] args) { Spreadsheet document = new Spreadsheet(); Worksheet worksheet = document.Workbook.Worksheets.Add(); worksheet.Rows[1].Height = 100; // delete output file if exists already if (File.Exists("Output.xls")){ File.Delete("Output.xls"); } document.SaveAs("Output.xls"); // Close Spreadsheet document.Close(); // open in default spreadsheets viewer/editor Process.Start("Output.xls"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Explore Samples

Sign Up for ByteScout Spreadsheet SDK 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 Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Explore Samples

Sign Up for ByteScout Spreadsheet SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next