Hintergrundbild in Excel einfügen

Einstellungsblatthintergrund in Microsoft Excel

So legen Sie das Hintergrundbild eines Blatts in Microsoft Excel fest (z. B. Microsoft Excel 2019):

  1. Von demSeitenlayout Menü finden Sie dieSeiteneinrichtung Option, und klicken Sie dann auf dieHintergrund Möglichkeit.

  2. Wählen Sie ein Bild aus, um das Hintergrundbild des Blatts festzulegen.

    Festlegen eines Blatthintergrunds

todo: Bild_alt_Text

Einstellblatthintergrund mit Aspose.Cells

Der folgende Code legt ein Hintergrundbild mit einem Bild aus einem Stream fest.

// 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);

Zum Thema passende Artikel