设置工作表缩放系数
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();
下载运行代码
下载设置工作表缩放系数形成以下任何一个社交编码网站:
欲了解更多详情,请访问使用工作表.