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

gembox spreadsheet Calculate method not available

GemBox Spreadsheet (https://www.gemboxsoftware.com/spreadsheet) documentation indicates a Calculate method is available at the excel file level object. However this Calculate method is missing when you reference the main library. Do I need a…
user2503480
  • 193
  • 3
  • 16
0
votes
1 answer

GemBox.Spreadsheet Save method is not doing anything and no errors

I have been trying to use Gembox to export some information from my web application into an excel spreadsheet. When debugging I can step through the entirety of my SaveExcelFile method but nothing seems to happen, no file is downloaded and seemingly…
Kiwi
  • 5
  • 4
0
votes
1 answer

R1C1-formulas in Gembox.Spreadsheet

I am testing GemBox.Spreadsheet (47.0.1031) and found a note that R1C1-formulas are available in the latest versions. But, how does it work? My tests have failed so far: SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY"); var f = new ExcelFile(); var ws…
KekuSemau
  • 6,830
  • 4
  • 24
  • 34
0
votes
0 answers

"We Found A Problem With Some Content In Excel" formula's trouble

I know that error "We Found A Problem With Some Content In Excel" has been asked a lot of times, but I haven't found my root cause for this problem. In my excel file this error appears after I switch…
Roman
  • 23
  • 5
0
votes
2 answers

How can I use 2 MultipleBorders option in GemBox

I can use an inside border line style and an outside line style, but I don't know how I can use both. As in this picture: I am using C# and GemBox.Spreadsheet //inside border for (int line = 0; line < Projectsource.Count(); line++) //바깥border과 안쪽…
0
votes
1 answer

GemBox.Spreadsheet download xlsx file using .net web service

I'm writing a .net web service to download an excel file created with free version of GemBox.Spreadsheet. Calling the service, the server run but doesn't give any answer. This is the code. Any idea (or another…
MAX_1999
  • 81
  • 5
0
votes
2 answers

Gembox Spreadsheet - Remove blank pages

I dont know how achieve this, I have to create an informative report with images. For this, I use an excell template (It helps me with the format and with the position of the text where to place the respective information). The images are generated…
Oscar Moncayo
  • 188
  • 6
  • 20
0
votes
1 answer

How can I resize an Excel Table using Gembox.Spreadsheet?

I'm replacing Excel Table contents in an existing workbook with new contents from C# code using Gembox.Spreadsheet. Sometimes the data has more rows than the existing table, sometimes it has fewer. To resize the table my first attempt has been to…
Josh Gallagher
  • 5,211
  • 2
  • 33
  • 60
0
votes
1 answer

PDF conversion issue

I am using GemBox.Spreadsheet to create and save an Excel Spreadsheet, and convert the saved sheet to PDF. The sample program opens and writes the Excel spreadsheet as a PDF correctly, when I run it on the saved spreadsheet. In my code I save the…
0
votes
1 answer

How do from http response which contain ExcelFile as string convert back instance ExcelFile(library GemBox)? C#

I want to write integration test for my controller which return HttpResponseMessage which have "Content" as string and his content-type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" How do me convert this string back instance…
0
votes
1 answer

Gembox spreedsheet excel file upload

I want to read excel file using gembox like first row as header to check weather required column are present or not.
0
votes
1 answer

How to convert an Excel Function to an actual value in C# using Gembox

We have an automated feed which is populated by our ERP system using C# and GemBox which generates an Excel File with pricing. We have a formula to roundup the pricing, but we discovered that other web systems can't see the actual value as a…
Tig7r
  • 525
  • 1
  • 4
  • 21
0
votes
1 answer

I am trying to add more content to an existing excel file, can anyone tell me is there any method can be used from gembox.speadsheet?

I already have the path of the Excel file, but whenever I call save method, the program writes new content to UTC.xlsx file. string pathString = "C:\Users\ADMIN-PC\Documents\SUMMER 2018\PRN192\CreateFile\SubFolder\UTC.xlsx"; ef.Save(pathString);
Teresa
  • 1
0
votes
1 answer

GemBox stops the rest of the backend code to function in a DNN module

We have a DNN module which will fetch a Price-list from our ERP system once you have selected the Format that you will like to export it to. We are using GemBox to generate the Excel, CSV or PDF file but the problem we have realized is that the rest…
Tig7r
  • 525
  • 1
  • 4
  • 21
0
votes
1 answer

how can i calculated values after Worksheet.Calculate()?

i tried Trial version of Gembox.SpreadSheet. when i Get Cells[,].value by for() or Foreach(). so i think after Calculate() & get Cell[].value, but that way just take same time,too. it take re-Calculate when i Get Cell[].value. workSheet.Calcuate();…