Questions tagged [gembox-spreadsheet]

GemBox.Spreadsheet is a .NET component that enables you to read, write, convert, and print spreadsheet files (XLSX, XLS, XLSB, CSV, HTML, and ODS) from .NET applications. With GemBox.Spreadsheet you get a fast and reliable component that’s easy to use and doesn't depend on Microsoft Excel. It requires only .NET and it’s much faster than Microsoft Office Automation!

GemBox.Spreadsheet () is a .NET component that enables developers to read, write, and convert spreadsheet files from their .NET applications.

GemBox.Spreadsheet Free is free of charge while GemBox.Spreadsheet Professional is a commercial version licensed per developer. Server deployment is royalty-free.


Support

Read Read & Write Write
XML XLS, XLT PDF, PDF/A
XLSX, XLTX, XLSM, XLSM XPS
XLSB PNG, JPG, GIF, BMP, TIFF
ODS
CSV, TSV
HTML, MHTML
PRN, TXT

Hello World

C#

// Create a new file.
ExcelFile workbook = new ExcelFile();

// Create a new sheet.
ExcelWorksheet worksheet = workbook.Worksheets.Add("Sheet 1");

// Get cell "A1".
ExcelCell cell = worksheet.Cells["A1"];

// Set cell value to "Hello World".
cell.Value = "Hello World";

// Save as XLSX file.
workbook.Save("Output.xlsx");

VB.NET

' Create a new file.
Dim workbook As New ExcelFile()

' Create a new sheet.
Dim worksheet As ExcelWorksheet = workbook.Worksheets.Add("Sheet 1")

' Get cell "A1".
Dim cell As ExcelCell = worksheet.Cells("A1")

' Set cell value to "Hello World".
cell.Value = "Hello World"

' Save as XLSX file.
workbook.Save("Output.xlsx")

Top Features


System Requirement

  • .NET Framework 3.5 - 4.8
  • .NET Core 3.1 (.NET 5 & 6 for Windows)
  • .NET Standard 2.0 (.NET 5 & 6 for Linux, macOS, Android, iOS, …)

Installation

You can download GemBox.Spreadsheet from NuGet

Or from BugFixes


Resources


Related Tags

115 questions
0
votes
0 answers

Download Gembox ExcelFile as ExcelFile from API in angular 5 application

I am trying to create an excel file from gembox ExcelFile in asp.net web api and let it be downloaded from angular 5 application. But, the downloaded file says it is corrupt and when opened, random and unwanted texts are displayed along with the…
Subash Kharel
  • 478
  • 1
  • 3
  • 12
0
votes
1 answer

R package for updating cells in an existing Excel Spreadsheet

Is there a R package for updating cells/ranges in a Excel Spreadsheet? I don't want to overwrite the entire spreadsheet. Just target individual cells/ranges. The reason is that the other cells in the spreadsheet have formula, which I don't want to…
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
0
votes
2 answers

VB.NET Gembox - Switch Active Spreadsheet

I've looked all over for this and think I'm just hitting a mental brick wall for something simple. But still. I'm writing a quick program to help me with some mileage spreadsheets for different vehicle. Each vehicle has its on worksheet within the…
Ian Carr
  • 11
  • 1
0
votes
1 answer

"ExportToDataGridView" Does not exist in .NET GemBox

Ive been trying to find why this happend but for some reason .net of gembox.spreadsheet.winformutilities wont provide ExportToDataGridView on the code: using System.Windows.Forms; using GemBox.Spreadsheet; using…
0
votes
0 answers

How to force, when loading csv file, not to parse numbers that is quoted

I'm using Gembox.Spreadsheet to load my CSV file and convert it to excel. but the problem is that I have some columns values that store numbers as string because it's zero loaded (zero here is very important either left padded or right) but when…
Walid Haidari
  • 125
  • 2
  • 10
0
votes
1 answer

Gembox: Modify Comment Size

I'm using Gembox 37.3.30.1030. I'm adding comments to cells which sometimes are not displayed properly due to a small comment size. I don't see any properties which can resize the comment. Can anyone help? Thanks!
Shlomi
  • 19
0
votes
1 answer

Gembox.Spreadsheet autofit not working with first two columns C#

using System; using System.IO; using System.Linq; using System.Xml.Linq; using GemBox.Spreadsheet; namespace ExcelSortingAutomation { public class Program { [STAThread] public static void Main(string[] args) { …
jpears
  • 87
  • 1
  • 10
0
votes
1 answer

LineBreak within an excel cell using GemBox Spreadsheet

Is it possible to add a line break within an excel cell using the GemBox Spreadsheet API? For example if you're in Excel you can press Alt+Enter and go to a new line in a cell. I'm having trouble finding a property on the CellStyle class in GemBox…
Rich
  • 6,470
  • 15
  • 32
  • 53
0
votes
1 answer

Gembox find and update cell

I am trying to update an excel file with gembox. I want gembox to search the excel file for a certain string, and update all matches. But the method FindText() only returns the first occurrence. I tried the following, but it causes an infinite…
Jan-Wiebe
  • 61
  • 2
  • 11
0
votes
1 answer

Using Gembox.Spreadsheets to convert .Xlsx to PDF

I was looking for free alternatives to Spire.Xls that allow me to convert from .Xlsx format to .PDF, so far, Gembox is doing great work. However, I cant seem to get the scaling right, and as far as I've looked noone has had the same problem. I'm…
Aroueterra
  • 336
  • 3
  • 18
0
votes
3 answers

DataGridView doesn't show data when imported

Behind code of aspx page, I have a Datatable: Dim people As DataTable = New DataTable() people.Columns.Add("ID", System.Type.GetType("System.Int32")) people.Columns.Add("FirstName",…
mdt
  • 139
  • 3
  • 17
0
votes
1 answer

How to set pagesize in ConvertToXpsDocument(SaveOptions.XpsDefault);

I try to load an excel file and show in xpsdocument viewer by following code XpsDocument xpsDocument = ef.ConvertToXpsDocument(SaveOptions.XpsDefault); documentViewer.Tag = xpsDocument; documentViewer.Document =…
user1230268
  • 221
  • 2
  • 14
0
votes
1 answer

Gembox is reading different double value

I have an implementation with gembox library and I'm reading numeric values from an excel file. The are values for example that gembox reads like 101.41179656982422 but if I open the excel in cell value is 101.411796569824
0
votes
1 answer

Gembox spreadsheet. is there a way to make it fit to one page when saving to pdf

Im trying to find a way to convert xls files to pdf, and gembox spreadsheet is great for this. But i need to be able to make it fit to one page as you can when printing to pdf via excel.
Jonas Olesen
  • 568
  • 5
  • 25
0
votes
1 answer

How to insert an empty row in excel spread sheet using GemBox?

This doesn't work: sheet.Rows[onRow].InsertEmpty(1); Where sheet is an instance of ExcelWorksheet, and onRow is an int. That seems to do nothing at all.
Casey Crookston
  • 13,016
  • 24
  • 107
  • 193