How to add Hyperlinks in Excel using C#

Excel is an exceptional tool for working with large data sets, data visualization, and statistical analysis of data. While creating a detailed data report in Excel, certain data may require to be linked to external data sources, webpages, email addresses, and target locations in another worksheet in the same workbook. Microsoft Excel provides all these hyperlinking options. As a .NET application developer, you may be interested in providing hyperlinking functionality in your C#/VB.
June 26, 2023 · 6 min · Kashif Iqbal

Set Cell Style in Excel using NPOI API in C#

Applying a style to a cell or set of cells is a very common operation while working with workbooks in Excel. By cell styling, we mean applying a defined set of formattings such as fonts, font sizes, number formats, cell borders, and cell shading. This helps in improved and better visualization of data for quick referencing. As a .NET application developer, you may be interested in providing the functionality of setting cell style in Excel workbooks from within your .
May 20, 2023 · 3 min · Kashif Iqbal

Protect Excel Worksheets using NPOI in C#

Imagine you have hard worked to compile your data in an Excel workbook and saved it to your computer. Your kids are using the same computer for their educational purpose. They accidentally open the file you have compiled after so much hard work and somehow make changes to your data. All your hard work is now about to get wasted as data consistency may have arisen due to all these changes.
May 19, 2023 · 3 min · Kashif Iqbal

Merge Cells in Excel using NPOI in C#

A common operation in Microsoft Excel is to merge two or more cells. This gives a more organized look and feels to your data with the sense of data grouping and headers information. You can merge as many cells as well as rows and columns using Excel. As a .NET application developer, you may be interested in providing the functionality of merging cells in Excel spreadsheets from within your application. You can achieve this using NPOI API in your application that can merge cells or cell ranges using C# or VB.
May 13, 2023 · 3 min · Kashif Iqbal

Insert Image in Excel using NPOI in .NET

Inserting images in Excel files is a very commonly used feature for Microsoft Excel users. Adding images to your Excel workbooks helps clarify your point of view and data representation more effectively. You can add multiple images to each worksheet in your workbook. As a .NET application developer, you may want to add the feature of inserting images in Excel files from within your application programmatically. The good news is that this can be achieved using NPOI API in C# and VB.
May 11, 2023 · 3 min · Kashif Iqbal

Create Drop-down List in Excel with NPOI in C#

Drop-down lists provide a better way to limit users for data entry from a specified list of options. This removes the chances of making wrong data entries if input by the user manually. Creating drop-down lists in your Excel workbook is a preferred way of compelling users to choose from available dropdown entries only. When someone selects a cell, the options in drop-down lists appear from where they can make a selection.
May 6, 2023 · 3 min · Kashif Iqbal

Copy Worksheet in Excel with NPOI API using C#

Microsoft Excel is a perfect tool for working with data-intensive computations and calculations. People use it in their routine work to carry out complex calculations such as mathematical formula implementation, statistical analysis and many more. Data in an Excel worksheet may often need to be replicated in another worksheet in the same workbook for further operations and modifications. This can be achieved easily by using the COPY operation in Excel. As a .
April 15, 2023 · 2 min · Kashif Iqbal

Insert Header and Footer in Excel using NPOI in .NET

If you are a frequent user of working with Excel workbooks, you must be familiar with adding Headers and Footers to your file. As the name indicates, the Header in an Excel file represents the repetitive information added to the top of a file, whereas the Footer is used to add information to the bottom of each page in the file. Header and footer information is repeated on each page of the file.
April 4, 2023 · 3 min · Kashif Iqbal

Add Formula in Excel using NPOI in .NET

If you have worked with Formulas in Excel, you must know the power of using formulas to perform calculations and analysis. Using formulas is essential for creating effective spreadsheets and making informed decisions. Excel has a wide range of formulas including mathematical operators, functions, and cell references to fully automate data calculations and analysis. In our series of articles on working with NPOI API in .NET, we explained how to install NPOI in .
March 30, 2023 · 3 min · Kashif Iqbal

Add Comment in Excel using NPOI in .NET

In our previous article, Using NPOI for Spreadsheets in .NET, we went through and showed how you can create a Workbook with NPOI in C#. We also showed examples of how to read data from a spreadsheet and save the workbook as an XLSX. NPOI is a powerful open-source API that lets you work with Microsoft Office Excel Spreadsheets and Word Documents. In this article, we further explore the features of inserting a comment in an Excel worksheet using NPOI with .
March 24, 2023 · 3 min · Kashif Iqbal