PNG JPG BMP TIFF XLSX
Aspose.Cells  for .NET

Insert Star/Banner into Excel via .NET

Insert Star/Banner using Aspose.Cells’ API without any software like Microsoft or Open Office, Adobe PDF, etc.

How to Insert Star/Banner into Excel File Using C#

In order to insert Star/Banner into excel file, we’ll use

Aspose.Cells for .NET

API which is a feature-rich, powerful and easy to use document manipulation and splitter API for C# platform. Open

NuGet

package manager, search for Aspose.Cells and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.Cells

Steps to insert Star/Banner to Excel file via C#

You need the aspose.cells.dll to try the following workflow in your own environment.

  • Instantiating a Workbook object.(or->Load the XLSX file with full path.)
  • Select Worksheet via its index.
  • Use the add method to insert Star/Banner in the selected worksheet
  • Save workbook in XLSX format.

System Requirements

Aspose.Cells for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Mono or Xamarin Platforms
  • Development environment like Microsoft Visual Studio
  • Add reference to the Aspose.Cells for .NET DLL in your project - Install from NuGet using the Download button above
The sample code below demonstrates how to insert "Ribbon: Curved and Tilted Up" and "Explosion: 8 Points". For more types, please refer to "Overview of Star and Banner Types" below.
 

Insert Star/Banner - C#

 

Overview of Star and Banner Types

AutoShapeType.Explosion1

AutoShapeType.Explosion2

AutoShapeType.Star4

AutoShapeType.Star5

AutoShapeType.Star6

AutoShapeType.Star7

AutoShapeType.Star8

AutoShapeType.Star10

AutoShapeType.Star12

AutoShapeType.Star16

AutoShapeType.Star24

AutoShapeType.Star32

AutoShapeType.UpRibbon

AutoShapeType.DownRibbon

AutoShapeType.CurvedUpRibbon

AutoShapeType.CurvedDownRibbon

AutoShapeType.VerticalScroll

AutoShapeType.HorizontalScroll

AutoShapeType.Wave

AutoShapeType.DoubleWave

  • About Aspose.Cells for .NET API

    Aspose.Cells API can be used to create, edit, convert and render Microsoft Excel formats to different formats. Moreover, it can be used for comprehensive charting, scalable reporting and reliable calculations within software applications. Aspose.Cells is a standalone API and it does not require any software like Microsoft or OpenOffice.