Python中的缩放因子
Contents
[
Hide
]
Aspose.Cells - 缩放因子
使用Aspose.Cells Java for Python来设置缩放因子,只需调用ZoomFactor模块。
Python 代码
workbook = self.Workbook(self.dataDir + "Book1.xls")
#Accessing the first worksheet in the Excel file
worksheets = workbook.getWorksheets()
worksheet = worksheets.get(0)
#Setting the zoom factor of the worksheet to 75
worksheet.setZoom(75)
#Saving the modified Excel file in default format
workbook.save(self.dataDir + "output.xls")
\# Print message
print "Zoom factor set to 75% for sheet 1, please check the output document."
下载运行代码
从下面提到的任何社交编码网站下载缩放因子(Aspose.Cells):