设置工作表缩放比例
Contents
[
Hide
]
Aspose.Cells - 设置工作表缩放比例
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 - 设置工作表缩放比例
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();
下载运行代码
从以下任何社交编码网站下载设置工作表缩放比例
有关更多详细信息,请访问使用工作表。