Excel e Arka Plan Görüntüsü Ekleme
Microsoft Excel’de Sayfa Arka Planını Nasıl Ayarlar
Microsoft Excel’de bir sayfanın arka plan görüntüsünü ayarlamak için (örneğin, Microsoft Excel 2019 için):
-
Sayfa Düzeni menüsünden Sayfa Ayarı seçeneğini bulun ve ardından Arka Plan seçeneğine tıklayın.
-
Tablonun arka plan resmini ayarlamak için bir resim seçin.
Tablo arka planı ayarlama
Sayfa Arka Planını Aspose.Cells for Python Excel Kütüphanesi ile Nasıl Ayarlarsınız
Aşağıdaki kod, bir akıştaki bir resim kullanarak arka plan resmini ayarlar.
from aspose.cells import SaveFormat, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Create a new Workbook. | |
workbook = Workbook() | |
# Get the first worksheet. | |
sheet = workbook.worksheets[0] | |
# Set the background image for the worksheet. | |
sheet.background_image = open("background.jpg", "rb").read() | |
# Save the Excel file | |
workbook.save("outputBackImageSheet.xlsx") | |
# Save the HTML file | |
workbook.save("outputBackImageSheet.html", SaveFormat.HTML) |