Ställ in arbetsbladets zoomfaktor

Aspose.Cells - Ställ in arbetsbladets zoomfaktor

C#

 //Instantiating a Workbook object

Workbook workbook = new Workbook();

//Adding a new worksheet to the Workbook object

WorksheetCollection worksheets = workbook.Worksheets;

Worksheet worksheet = worksheets.Add("My Worksheet");

worksheet.Zoom = 75;

//Saving the Excel file

workbook.Save("../../data/newWorksheet.xls");

NPOI - HSSF XSSF - Ställ in arbetsbladets zoomfaktor

C#

 IWorkbook wb = new XSSFWorkbook();

ISheet sheet1 = wb.CreateSheet("First Sheet");

sheet1.SetZoom(3, 4); // 75 percent

FileStream sw = File.Create("../../data/newWorksheet.xls");

wb.Write(sw);

sw.Close();

Ladda ned körbar kod

Ladda ner formuläret Ställ in arbetsbladets zoomfaktor från någon av de nedan nämnda sociala kodningssidorna: