Web Adresinden Bağlantılı Bir Resim Eklemek
Microsoft Excel Kullanımı
Microsoft Excel’de (örneğin 2007):
- Ekle menüsünü tıklayın ve Resim‘i seçin.
- Resim Ekle iletişim kutusunda resmin web adresini belirtin.
Aspose.Cells for Python via .NET Kullanılarak
Aspose.Cells for Python via .NET, ShapeCollection.add_linked_picture(int upper_left_row, int upper_left_column, int height_pixels, int width_pixels, str source_full_name) kullanarak bağlı bir resim eklemeyi destekler. Yöntem bir Picture nesnesi döndürür.
Aşağıdaki örnek, bir elektronik tabloya hücre referansı üzerinden bağlantılı resim eklemenin nasıl yapılacağını göstermektedir.
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Instantiate a new Workbook. | |
workbook = Workbook() | |
# Insert a linked picture (from Web Address) to B2 Cell. | |
pic = workbook.worksheets[0].shapes.add_linked_picture(1, 1, 100, 100, "http:// Www.aspose.com/Images/aspose-logo.jpg") | |
# Set the height and width of the inserted image. | |
pic.height_inch = 1.04 | |
pic.width_inch = 2.6 | |
# Save the Excel file. | |
workbook.save(dataDir + "outLinkedPicture.out.xlsx") |