Python中的分割窗格
Contents
[
Hide
]
Aspose.Cells - 拆分窗格
使用Aspose.Cells Java for Python来分割窗格,只需调用SplitPanes模块。
Python 代码
saveFormat = self.SaveFormat;
workbook = self.Workbook(self.dataDir + "Book1.xls")
#Set the active cell
workbook.getWorksheets().get(0).setActiveCell("A20");
#Split the worksheet window
workbook.getWorksheets().get(0).split();
#Save the excel file
workbook.save(self.dataDir + "book.out.xls", saveFormat.EXCEL_97_TO_2003);
#Print Message
print "Panes split successfully."
下载运行代码
从下面提到的任何社交编码网站下载分割窗格(Aspose.Cells):