Jython da Freeze Panes
Contents
[
Hide
]
Aspose.Cells - Panoları Sabitleme
Aspose.Cells Java for Jython ile belgeler eklemek için. Burada örnek kodu görebilirsiniz.
Jython Kodu
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()
Çalışan Kodu İndir
Aşağıda belirtilen sosyal kodlama sitelerinden Append Documents (Aspose.Cells) indirin: