Insert a Linked Picture from Web Address
Contents
[
Hide
]
Sometimes you need to insert a picture from the web (http://) into a worksheet. To do so, specify the picture’s URL and the picture will be downloaded every time the spreadsheet is opened in Microsoft Excel. The image is not physically embedded into the Excel document, but points to a web resource.
Using Microsoft Excel
In Microsoft Excel (for example 2007):
- Click the Insert menu and select Picture.
- Specify the web address for the picture in the Insert Picture dialog.
Using Aspose.Cells for .NET
Aspose.Cells for .NET supports adding a linked image using the ShapeCollection.AddLinkedPicture(int upperLeftRow, int upperLeftColumn, int heightPixels, int widthPixels, string sourceFullName). The method returns a Picture object.
The following example shows how to add linked picture from web address to a worksheet.