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
2 answers

Add assembly reference in .NET

I'm having a hard time installing GemBox.Spreadsheet package in my .NET app. That's my first time using .NET (C#)., i have a Node.JS background, so I don't understand the problem. I already installed with dnu install GemBox.Spreadsheet and…
user5526811
0
votes
1 answer

Gembox Spreadsheet add column without remove the other ones

I'm coding in c# and using Gembox Spreadsheet to manipulate excel files. I'd like to know if it's possible to add a column(without remove the other ones) in a pre-existent xls file: ExcelFile ef = ExcelFile.Load(masterFile); ExcelWorksheet ws =…
user2075861
  • 117
  • 2
  • 15
0
votes
1 answer

Rotated Excel cell text not printing rotated

I am using GemBox.Spreadsheet to populate an Excel template with data. One of the cells has been set to rotate its content 90 degrees. When the file is saved to disk, the text is rotated correctly, but when printing the ExcelFile object directly to…
Carl Heinrich Hancke
  • 2,660
  • 1
  • 30
  • 35
0
votes
1 answer

how to change default color of column graph using GemBox version 37.3.30.1160

how to change default color of column graph using GemBox version 37.3.30.1160. If I create a .xlsx template and save the same it will work but I am trying to save the file as PDF and that's where its not working.
0
votes
1 answer

Setting Active worksheet using Gembox

I'm currently working on a spreadsheet reader that needs to read the second worksheet in the ExcelFile. I've looked only but can't find anywhere that references how to set the activeworksheet. Currently my active worksheet is set like…
Anuj Hari
  • 543
  • 3
  • 9
  • 19
0
votes
1 answer

Gembox software can't change Font Name and/or Font Size

Using GemBox to take an existing .xlsx excel file to populate with data and save it to an .xlsx file. The issue I am having is this when trying to set the font name and font size using documentation on Gembox website I am getting the following…
user1930845
0
votes
1 answer

"Stacking" cell styles with F# and GemBox.Spreadsheet

I'm writing data from F# into Excel with GemBox.Spreadsheet. Getting the data from F# to Excel is fairly simple. Adding single cell styles to a specific or range of cells is rather simple as well. However, I'm trying to "stack" styles (i.e., add…
Steven
  • 3,238
  • 21
  • 50
0
votes
3 answers

Gembox removes precision when saving as CSV

I'm using Gembox spreadsheet to export some data to .CSV but aren't getting any decimals in the output file. When exporting as XLSX everything looks as expected. I've tried both Gembox 3.7 and 3.9 but the result is the same. Use the following code…
user1029697
  • 150
  • 2
  • 9
0
votes
1 answer

Export spreadsheet to PDF with formula calculated values

I use the Gembox.Spreadsheet dll to convert a Excel document to PDF by: ExcelFile.Load(formExcelPath).Save(formPdfPath); Which works as expected except for one thing: values which are calculated from formulas show up in the PDF as if they were…
JWiley
  • 3,129
  • 8
  • 41
  • 66
0
votes
1 answer

How to add multiple hyperlinks to an xlsx cell using GemBox.Spreadsheet?

I'm creating an Excel report using GemBox.Spreadsheet, but having trouble getting multiple hyperlinks to appear in the same cell. Below is the code: cell = sheet.Range[rowId, colId++]; foreach (var doc in item.Documents) { var h =…
acullen72
  • 817
  • 2
  • 9
  • 19
0
votes
1 answer

Gembox, colorify Excel row

As stated in the title i would like to use Gembox to colorify an entire row in a Excell document with a color selected at runtime. I have tried the following code : ef.LoadXls("path"), XlsOptions.PreserveAll); …
Skary
  • 1,322
  • 1
  • 13
  • 40
0
votes
1 answer

WPF DocumentViewer throw exception during scrolling

I've the problem, that the WPF-DocumentViewer throws exceptions during scrolling through the document. The document it self was loaded successful and is shown correctly. I get the following error message: Unkown URI-Prefix. The XPS is generated by…
BendEg
  • 20,098
  • 17
  • 57
  • 131
0
votes
1 answer

How to change DefaultFontSize for a gembox spreadsheet?

Can anyone give me an example on how to change the font size for a sheet using Gembox software? I was able to change for a cell though but I want to change in entire sheet. GemBoxHelp
Indy Guy
  • 51
  • 1
  • 6
0
votes
1 answer

How to read .xls specific cell data using GemBox in c#

Please help me to fetch or to read specific cell data of .xls spreed sheet using GemBox in c#. I am able to write but fails to read the specific cell data. I don't want to read all data at once. var dataSet = new DataSet(); …
Vivek Sharma
  • 29
  • 2
  • 12
0
votes
1 answer

Looping FindText method from GemBox.Spreadsheet

Took an example from the website and trying to create a loop that would tag certain cells based on their cell content which would be identified through the FindText Method from the Gembox component My goal is: find cell with a partial match of the…