ByteScout Spreadsheet SDK - VB.NET - Change Column Width and Row Height - ByteScout

ByteScout Spreadsheet SDK – VB.NET – Change Column Width and Row Height

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – VB.NET – Change Column Width and Row Height

How to change column width and row height in VB.NET with ByteScout Spreadsheet SDK

This tutorial will show how to change column width and row height in VB.NET

The code below will help you to implement an VB.NET app to change column width and row height. Want to change column width and row height in your VB.NET app? ByteScout Spreadsheet SDK is designed for it. ByteScout Spreadsheet SDK is the library (SDK) that is capable of writing, reading, modifying and calculating Excel and CSV spreadsheets. Most popular formulas can be calculated and reculculated with Excel installed. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays.

This code snippet below for ByteScout Spreadsheet SDK works best when you need to quickly change column width and row height in your VB.NET application. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Code testing will allow the function to be tested and work properly with your data.

Download free trial version of ByteScout Spreadsheet SDK from our website with this and other source code samples for VB.NET.

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Module1.vb
      
Imports System Imports System.Collections.Generic Imports System.Text Imports System.IO Imports Bytescout.Spreadsheet Module Module1 Sub Main() ' Create new XLS document Dim document As New Spreadsheet() ' Create new worksheet Dim worksheet As Worksheet = document.Workbook.Worksheets.Add() ' Set column width worksheet.Columns(1).Width = 300 ' Set column height worksheet.Rows(1).Height = 100 ' remove output file if already exists If File.Exists("Output.xls") Then File.Delete("Output.xls") End If ' Save document document.SaveAs("Output.xls") ' Close Spreadsheet document.Close() ' open in default spreadsheets viewer/editor Process.Start("Output.xls") End Sub End Module

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Get ByteScout Spreadsheet SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next