# Adding an Image to the Sheet

Use Spread for ASP.NET to add a floating image to the spreadsheet that can be exported to an Excel-formatted file.

## Content

You can add a floating image to the sheet that can be exported to an Excel-formatted file.
![Sheet with an image](https://cdn.mescius.io/document-site-files/images/346c9178-0ed8-4fb9-908b-1565b22fb408/artwork/spreadimage.png)
You can use the [AddImage](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SheetView.AddImage.html) or [Add](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SpreadImageCollection.Add.html) method to add the image to the sheet.

## Using Code

1. Create an image object with the [SpreadImage](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SpreadImage.html) class.
2. Set any image properties.
3. Add the image to the sheet.

## Example

This example adds an image to the sheet.

```csharp
FarPoint.Web.Spread.SpreadImage image = new FarPoint.Web.Spread.SpreadImage();
                image.CanMove = true;
                image.CanSelect = true;
                image.ImageUrl = "fplogo.png";
                image.Width = 200;
                image.Height = 150;
                image.Left = 50;
                image.Top = 50;
                FpSpread1.ActiveSheetView.Images.Add(image);
```

```vbnet
Dim Image As New FarPoint.Web.Spread.SpreadImage()
                Image.CanMove = True
                Image.CanSelect = True
                Image.ImageUrl = "fplogo.png"
                Image.Width = 200
                Image.Height = 150
                Image.Left = 50
                Image.Top = 50
                FpSpread1.ActiveSheetView.Images.Add(Image)
```

## See Also

[SpreadImageCollection Class](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SpreadImageCollection.html)
[FloatingObject Class](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FloatingObject.html)