Excel e Arka Plan Görüntüsü Ekleme

Microsoft Excel’de Sayfa Arka Planını Ayarlama

Microsoft Excel’de bir sayfanın arka plan görüntüsünü ayarlamak için (örneğin, Microsoft Excel 2019 için):

  1. Sayfa Düzeni menüsünden Sayfa Ayarı seçeneğini bulun ve ardından Arka Plan seçeneğine tıklayın.

  2. Tablonun arka plan resmini ayarlamak için bir resim seçin.

    Tablo arka planı ayarlama

todo:image_alt_text

Aspose.Cells ile Sayfa Arka Planı Ayarlama

Aşağıdaki kod, bir akıştaki bir resim kullanarak arka plan resmini ayarlar.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Create a new Workbook.
Workbook workbook = new Workbook();
// Get the first worksheet.
Worksheet sheet = workbook.Worksheets[0];
// Set the background image for the worksheet.
sheet.BackgroundImage = File.ReadAllBytes("background.jpg");
// Save the Excel file
workbook.Save("outputBackImageSheet.xlsx");
// Save the HTML file
workbook.Save("outputBackImageSheet.html", SaveFormat.Html);

İlgili Makaleler