Insert a Linked Picture from Web Address with Golang via C++
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 each time the spreadsheet is opened in Microsoft Excel. The image is not physically embedded in 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 C++
Aspose.Cells for C++ supports adding a linked image using the ShapeCollection::AddLinkedPicture(int upperLeftRow, int upperLeftColumn, int heightPixels, int widthPixels, System::String sourceFullName) method. The method returns a Picture object.
The following example shows how to add a linked picture from a web address to a worksheet.