Python 中的缩放因子

Aspose.Cells - 缩放系数

设置缩放系数使用Aspose.Cells Java for Python 只需调用缩放因子模块。

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)**来自以下任何社交编码网站: