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
1 answer

How to download embedded PDF files in an excel worksheet?

So I have this program that I made that parses out excel data (using Gembox). However sometimes there are embedded PDF files in some of the worksheets that I would like to download/extract. I have not been able to find a way to detect and download…
Snelson
  • 25
  • 2
  • 8
0
votes
1 answer

Gembox error when reading an .xls file from .xlsx file

I have an .xlsx file and I have changed the file extension to .xls and I am trying to read it using Gembox library. The problem is that when I am trying to read the file using GemboxExcel.LoadXls(fileName); method I get the following error:…
Tamas Ionut
  • 4,240
  • 5
  • 36
  • 59
0
votes
1 answer

GemBox - For loop for rows and cols?

I have a question. Is there a way that I could go through all the cols/rows in a spreadsheet using a for loop?? Right now I am using foreach loops like this in my code: (You can just ignore what's going on inside). foreach (ExcelRow row in…
jansyb04
  • 143
  • 2
  • 11
0
votes
1 answer

Flushing a Gembox Spreadsheet object to a stream while reading from a DataReader

Here's the scenario: I have around 400k records in a SQL Server 2008 R2 database that I want to export to an XLSX spreadsheet. The application is an ASP.NET 4.0 web application I tried using a DataTable with ReportViewer but the w3wp process…
Valerio Santinelli
  • 1,592
  • 2
  • 27
  • 45
0
votes
1 answer

Copy Excel DropDown from WorkBook to a new Workbook

Again a Excel question. My client send me a Excel File that contains a Drop Down List (Combobox), and i need copy that Combobox or build a new with the information inside. For excel i find that dropdownlist was named as Data Validation (i already…
andre
  • 113
  • 1
  • 10
0
votes
2 answers

how to copy and insert a specific rows at excell with gembox spreadsheet

please help. i use gembox.spreadsheet library to insert and copy at spesific rows within 2 sheets at excel file. but it still got problem with invalid argument. public void InsertCopyData() { SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY"); …
hadi
  • 3
  • 1
  • 6
0
votes
1 answer

Enabling Macros in Excel using GemBox 3.1 API

Well recently having a problem with GemBox.SpreadSheet 3.1. Right now the program will write an excel file, but when opening the file it will attempt to open the file saying "Excel found unreadable content" then asks yes or no if you wanna try to…
Twister1002
  • 559
  • 1
  • 9
  • 26
-1
votes
1 answer

How to change PaperSize or Print Size in GemBox Spreadsheet

i am currently utilizing GemBox.Spreadsheet as a plugin for my C# App. what i want to achieve at the moment is to print the Excel file in a different paper size (let's say A6 for example). i've found in the documentation about .PaperType in…
TheQuestioner
  • 702
  • 10
  • 28
-1
votes
2 answers

escaping from double quote string

I have string "my string" taken from excel value, I used GemBox.Spreadsheet library. But the result I have """my string""". How to get back my real string value as "my string Thanks
ranggadablues
  • 249
  • 1
  • 4
  • 14
-1
votes
1 answer

Getting random stack overflows from Gembox Spreadsheets .NET

I've been using Gembox.Spreadsheets for a few months now and it've worked just perfectly throughout the time. Recently though, the program crashes due to stack overflows in the library, which I ofcourse can't control. The overflows are pretty weird,…
Daniel
  • 129
  • 1
  • 7
1 2 3 4 5 6 7
8