Frequently Asked Questions

Sales and Licensing

SpreadsheetGear can be deployed royalty free with most client and server applications. Please see the license agreement for limitations.
One developer license is required for each and every developer working on any application which directly or indirectly references any SpreadsheetGear assembly.

A Signed License is used with NuGet-distributed products to activate either a trial or fully-licensed mode. Current products that use a Signed License include:

  • SpreadsheetGear Engine for .NET
  • SpreadsheetGear for Windows

SpreadsheetGear for .NET Framework does not use Signed License strings.

The Signed License itself is a string generated from either the Evaluation Downloads page or the Licensed User Downloads page. It should be supplied in your application with the following line of code, which should be called somewhere before any other SpreadsheetGear API is called:

SpreadsheetGear.Factory.SetSignedLicense("YOUR SIGNED LICENSE HERE");

See the Signed License page for more details.

Any use of or reliance on this information is at your own risk and is without recourse to SpreadsheetGear LLC. This information is subject to change without notice. SpreadsheetGear 2010 for .NET Framework, SpreadsheetGear 2012 for .NET Framework and SpreadsheetGear 2017 for .NET Framework as well as SpreadsheetGear for .NET Standard are self-classified with an ECCN of 5D992.c under EAR 742.15(b)(1), a license designation of NLR (“No License Required”), an Authorization Type of MMKT ("Mass Market") and an Export Registration Number (ERN) of R108616. These products encrypt Microsoft Excel documents using the .NET Framework Cryptography APIs as described in “2.3.4 ECMA-376 Document Encryption” of the document known as “[MS-OFFCRYPTO]: Office Document Cryptography Structure” which can be found here. SpreadsheetGear 2012 for Silverlight and all other SpreadsheetGear software have an ECCN of EAR99. Please see "10. Export Rules" in the SpreadsheetGear End User License Agreement for more information.
Yes. SpreadsheetGear for .NET Framework includes strong named assemblies which enables the installation and use of multiple versions on one machine.

General Product Questions

No, Excel is not required to use SpreadsheetGear products. Using Microsoft Excel in a server environment is not supported, which makes SpreadsheetGear a good solution for your server applications as well as your client applications.
No, SpreadsheetGear 2017 for .NET Framework is 100% safe managed code written exclusively for the .NET Framework. All that is required is the .NET Framework and the appropriate SpreadsheetGear assemblies.
SpreadsheetGear supports Excel 2007-2019 and Excel for Office 365 Open XML (.xlsx) and macro-enabled Open XML (.xlsm) workbooks which are compatible with Excel 2019. SpreadsheetGear also supports the older Excel 97-2003 (.xls) file format.

Beginning in Version 9, we renamed "SpreadsheetGear for .NET Standard" to "SpreadsheetGear Engine for .NET". This was done for a couple of reasons:

  • Before the name change, this product only targeted .NET Standard. But in Version 9 we started targeting both .NET Standard 2.0 and .NET 6, necessitating a name change.
  • To clarify the role of this product as primarily being a spreadsheet engine. Other products can supplement SpreadsheetGear Engine for .NET, such as using "SpreadsheetGear for Windows" to bring in Windows Forms / WPF UI controls, image rendering, printing, etc.
SpreadsheetGear comes with the most comprehensive Excel compatible charting support found in any .NET component, including charting APIs, chart rendering and chart editing.
See the Supported Excel Compatible Functions on the product page.
Samples for Windows Forms and WPF are available from the SpreadsheetGearExplorerSamples GitHub repository at: https://github.com/SpreadsheetGear/SpreadsheetGearExplorerSamples. If you are using SpreadsheetGear for .NET Framework, the installer comes with the SpreadsheetGear Explorer, a helpful Windows Forms Application sample similar to the GitHub samples. See SpreadsheetGear Explorer Sample Solutions for instructions on running the SpreadsheetGear Explorer.

The reason for AutoFit columns being slightly off is that the font metrics provided to us by .NET differ from those used by Microsoft Excel. You can work around this problem by adding a fudge factor to the column width after calling AutoFit(). Example:

IRange column = worksheet.Cells["A:A"].Columns;
column.AutoFit();
column.ColumnWidth *= 1.08;

Or when AutoFitting multiple columns:

IRange columns = worksheet.Cells["A:D"].Columns;
columns.AutoFit();
foreach (IRange column in columns)
{
    column.ColumnWidth *= 1.08;
}

This is a known limitation. When copying data from Microsoft Excel, they place several different versions of your data on the Clipboard, the two primary versions being:

  • A "Biff8" representation, i.e., an Excel 97-2003 / *.xls file, containing your copied data.
  • A Binary Open XML representation, i.e., an Macro-Enabled Open XML / *.xlsb file.

SpreadsheetGear must use the *.xls representation of the Clipboard data because SpreadsheetGear does not yet support reading or writing *.xlsb files. The older *.xls file format has limits of 256 columns and 65,536 rows (compared to the larger limits of Open XML files--16,384 columns and 1,048,576 rows), and so data beyond these limits will not be included when pasting into SpreadsheetGear. Other aspects of data could also get lost, such as more advanced Conditional Formatting options like Icon Sets, more than 3 rules, etc., since these are not supported in *.xls.

SpreadsheetGear utilizes an optimization in Open XML files that omits writing out certain sheet data attributes that are not always required. Omitting these attributes has the benefit of significantly reducing the file size of some workbooks--particularly files with a lot of cell data. While this optimization is compliant with the Open XML specification, OleDb cannot handle files that do not always write out these attributes.

To work around this, you can set the IWorkbookSet.Experimental property to the value of "OleDbOpenXmlWorkaround", which will cause SpreadsheetGear to always write out these attributes and so allow OleDb to read the files:

// Create an IWorkbookSet with the OleDbOpenXmlWorkaround option enabled
IWorkbookSet wbs = Factory.GetWorkbookSet();
wbs.Experimental = "OleDbOpenXmlWorkaround";

// Open or create a workbook.
IWorkbook workbook = wbs.Workbooks.Open(@"C:\Path\To\Workbook.xlsx");

// Save file and OleDb should be able to now read it
workbook.SaveAs(@"C:\Path\To\Workbook_OleDb.xlsx", FileFormat.OpenXMLWorkbook);

Visual Studio

Visual Studio only looks for new .NET components once. Be sure to close and restart Visual Studio after installing SpreadsheetGear.
If you recently installed a new version of SpreadsheetGear, you may need to remove any references to SpreadsheetGear assemblies from your project using the Solution Explorer window in Visual Studio. First, remove any old references, then, add any new ones back by using the .NET tab of the Add Reference dialog. It is also important to note that Visual Studio 2010 replaced the MS Help 2 system with the new Microsoft Help Viewer 1.0 system. This new help system does not have Dynamic Help, though it does still support IntelliSense, and pressing F1 on a term such as "IWorkbookSet". See SpreadsheetGear 2017 -> Getting Started -> Using Help in the SpreadsheetGear Help for more information on using the SpreadsheetGear 2017 help with Visual Studio 2005 / 2008 / 2010 / 2012 / 2013 / 2015 / 2017. Note: It may be necessary to delete any occurrences of any SpreadsheetGear assemblies from your project directory before adding any new assemblies.