在 Jython 中冻结窗格
Contents
[
Hide
]
Aspose.Cells - 冻结窗格
使用附加文档Aspose.Cells Java 对于 Jython.在这里您可以看到示例代码。
Jython代码
from aspose-cells import Settings
from com.aspose.cells import Workbook
class FreezePanes:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithWorksheets/FreezePanes/'
workbook = Workbook(dataDir + "Book1.xls")
#Accessing the first worksheet in the Excel file
worksheets = workbook.getWorksheets()
worksheet = worksheets.get(0)
#Applying freeze panes settings
worksheet.freezePanes(3,2,3,2)
#Saving the modified Excel file in default format
workbook.save(dataDir + "book.out.xls")
#Print Message
print "Panes freeze successfull."
if __name__ == '__main__':
FreezePanes()
下载运行代码
下载**附加文件 (Aspose.Cells)**来自以下任何社交编码网站: