إدراج صورة الخلفية في Excel

إعداد خلفية الورقة في Microsoft Excel

لتعيين صورة خلفية الورقة في Microsoft Excel (على سبيل المثال ، Microsoft Excel 2019):

  1. منتخطيط الصفحة القائمة ، والعثور علىاعداد الصفحة الخيار ، ثم انقر فوقخلفية اختيار.

  2. حدد صورة لتعيين صورة خلفية الورقة.

    إعداد خلفية الورقة

ما يجب القيام به: image_بديل_نص

إعداد خلفية الورقة بالرقم Aspose.Cells

يحدد الكود أدناه صورة الخلفية باستخدام صورة من دفق.

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

مقالات ذات صلة