diff --git a/Plugins/Aspose-Cells-Java-for-Python/README.md b/Plugins/Aspose-Cells-Java-for-Python/README.md new file mode 100644 index 00000000..49f438a2 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/README.md @@ -0,0 +1,22 @@ +## Aspose.Cells Java for Python + +Aspose.Cells Java for Python is a project that demonstrates / provides the Aspose.Cells for Java API usage examples in Python. + +## Download + +* To download Aspose.Cells for Java API to be used with these examples, Please navigate to [Aspose.Cells for Java](http://www.aspose.com/community/files/72/excel-components/aspose.cells-for-java/) +* Place downloaded jar file into "lib" directory. + +## Documentation + +For most complete documentation of the project, check [Aspose.Cells Java For Python confluence wiki](http://www.aspose.com/docs/display/cellsjava/Aspose.Cells+Java+for+Python). + +## Download Latest Versions? + +* [Latest Releases on Codeplex](http://asposecellsjavapython.codeplex.com/releasesce) + +## Clone Plugin SourceCodes? + +This project is also hosted and maintained at CodePlex. To clone navigate to: + +* [Aspose.Cells Java for Python on CodePlex - click here](https://asposecellsjavapython.codeplex.com/SourceControl/latest) diff --git a/Plugins/Aspose-Cells-Java-for-Python/WorkingWithFiles/__init__.py b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithFiles/__init__.py new file mode 100644 index 00000000..e8f669bc --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithFiles/__init__.py @@ -0,0 +1,494 @@ +__author__ = 'fahadadeel' +import jpype + +class ChartToImage: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.ChartType = jpype.JClass("com.aspose.cells.ChartType") + self.ImageOrPrintOptions = jpype.JClass("com.aspose.cells.ImageOrPrintOptions") + self.ImageFormat = jpype.JClass("com.aspose.cells.ImageFormat") + self.FileOutputStream = jpype.JClass("java.io.FileOutputStream") + self.Color = jpype.JClass("java.awt.Color") + + def main(self): + + chartType = self.ChartType + color = self.Color + imageFormat = self.ImageFormat + + #Create a Workbook+ + workbook = self.Workbook() + + #Get the first worksheet+ + sheet = workbook.getWorksheets().get(0) + + #Set the name of worksheet + sheet.setName("Data") + + #Get the cells collection in the sheet+ + cells = workbook.getWorksheets().get(0).getCells() + + #Put some values into a cells of the Data sheet+ + cells.get("A1").setValue("Region") + cells.get("A2").setValue("France") + cells.get("A3").setValue("Germany") + cells.get("A4").setValue("England") + cells.get("A5").setValue("Sweden") + cells.get("A6").setValue("Italy") + cells.get("A7").setValue("Spain") + cells.get("A8").setValue("Portugal") + cells.get("B1").setValue("Sale") + cells.get("B2").setValue(70000) + cells.get("B3").setValue(55000) + cells.get("B4").setValue(30000) + cells.get("B5").setValue(40000) + cells.get("B6").setValue(35000) + cells.get("B7").setValue(32000) + cells.get("B8").setValue(10000) + + #Create chart + chartIndex = sheet.getCharts().add(chartType.COLUMN, 12, 1, 33, 12) + chart = sheet.getCharts().get(chartIndex) + + #Set properties of chart title + chart.getTitle().setText("Sales By Region") + chart.getTitle().getFont().setBold(True) + chart.getTitle().getFont().setSize(12) + + #Set properties of nseries + chart.getNSeries().add("Data!B2:B8", True) + chart.getNSeries().setCategoryData("Data!A2:A8") + + #Set the fill colors for the series's data points (France - Portugal(7 points)) + chartPoints = chart.getNSeries().get(0).getPoints() + + point = chartPoints.get(0) + #print(self.Color.getWhite()) + + point.getArea().setForegroundColor(self.Color.white()) + + point = chartPoints.get(1) + point.getArea().setForegroundColor(self.Color.getBlue()) + + point = chartPoints.get(2) + point.getArea().setForegroundColor(self.Color.getYellow()) + + point = chartPoints.get(3) + point.getArea().setForegroundColor(self.Color.getRed()) + + point = chartPoints.get(4) + point.getArea().setForegroundColor(self.Color.getBlack()) + + point = chartPoints.get(5) + point.getArea().setForegroundColor(self.Color.getGreen()) + + point = chartPoints.get(6) + point.getArea().setForegroundColor(self.Color.getMaroon()) + + #Set the legend invisible + chart.setShowLegend(false) + + + + #Get the Chart image + imgOpts = self.ImageOrPrintOptions() + imgOpts.setImageFormat(imageFormat.getEmf()) + + fs = FileOutputStream(dataDir + "Chart.emf") + + #Save the chart image file+ + chart.toImage(fs, imgOpts) + + fs.close() + + # Print message + print("
") + print("Processing performed successfully") + +class ConvertingExcelFilesToHtml: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + + def main(self): + + saveFormat = self.SaveFormat + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Save the document in PDF format + workbook.save(self.dataDir + "OutBook1.html", saveFormat.HTML) + + # Print message + print "\n Excel to HTML conversion performed successfully." + +class ConvertingToMhtmlFiles: + + def __init__(self,dataDir): + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.HtmlSaveOptions = jpype.JClass("com.aspose.cells.HtmlSaveOptions") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + saveFormat = self.SaveFormat + + #Specify the file path + filePath = self.dataDir + "Book1.xlsx" + + #Specify the HTML saving options + sv = self.HtmlSaveOptions(saveFormat.M_HTML) + + #Instantiate a workbook and open the template XLSX file + wb = self.Workbook(filePath) + + #Save the MHT file + wb.save(filePath + ".out.mht", sv) + + # Print message + print "Excel to MHTML conversion performed successfully." + +class ConvertingToXPS: + + def __init__(self,dataDir): + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.ImageFormat = jpype.JClass("com.aspose.cells.ImageFormat") + self.ImageOrPrintOptions = jpype.JClass("com.aspose.cells.ImageOrPrintOptions") + self.SheetRender = jpype.JClass("com.aspose.cells.SheetRender") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + saveFormat = self.SaveFormat + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Get the first worksheet. + sheet = workbook.getWorksheets().get(0) + + #Apply different Image and Print options + options = self.ImageOrPrintOptions() + + #Set the Format + options.setSaveFormat(saveFormat.XPS) + + # Render the sheet with respect to specified printing options + sr = self.SheetRender(sheet, options) + sr.toImage(0, self.dataDir + "out_printingxps.xps") + + #Save the complete Workbook in XPS format + workbook.save(self.dataDir + "out_whole_printingxps", saveFormat.XPS) + + # Print message + print "Excel to XPS conversion performed successfully." + +class ConvertingWorksheetToSVG: + + def __init__(self,dataDir): + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.ImageFormat = jpype.JClass("com.aspose.cells.ImageFormat") + self.ImageOrPrintOptions = jpype.JClass("com.aspose.cells.ImageOrPrintOptions") + self.SheetRender = jpype.JClass("com.aspose.cells.SheetRender") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + saveFormat = self.SaveFormat + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Convert each worksheet into svg format in a single page. + imgOptions = ImageOrPrintOptions() + imgOptions.setSaveFormat(saveFormat.SVG) + imgOptions.setOnePagePerSheet(True) + + #Convert each worksheet into svg format + sheetCount = workbook.getWorksheets().getCount() + + #for(i=0; i"); + print ("Tab Delimited workbook has been opened successfully."); + + + + # 8. + # Opening Encrypted Excel Files + # Creating and EXCEL_97_TO_2003 LoadOptions object + loadOptions6 = self.LoadOptions(fileFormatType.EXCEL_97_TO_2003) + + # Setting the password for the encrypted Excel file + loadOptions6.setPassword("1234") + + # Creating an Workbook object with file path and the loadOptions object + workbook8 = self.Workbook(self.dataDir + "encryptedBook.xls", loadOptions6) + + # Print message + print("
"); + print ("Encrypted workbook has been opened successfully."); + +class SavingFiles: + def __init__(self,dataDir): + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.FileFormatType = jpype.JClass("com.aspose.cells.FileFormatType") + + def main(self): + + fileFormatType = self.FileFormatType + + + #Creating an Workbook object with an Excel file path + workbook = self.Workbook(self.dataDir + "Book1.xls") + #Save in default (Excel2003) format + workbook.save(self.dataDir + "book.default.out.xls") + + #Save in Excel2003 format + workbook.save(self.dataDir + "book.out.xls", fileFormatType.EXCEL_97_TO_2003) + + #Save in Excel2007 xlsx format + workbook.save(self.dataDir + "book.out.xlsx", fileFormatType.XLSX) + + #Save in SpreadsheetML format + workbook.save(self.dataDir + "book.out.xml", fileFormatType.EXCEL_2003_XML) + + #Print Message + print("
") + print("Worksheets are saved successfully.") + +class WorksheetToImage: + + def __init__(self,dataDir): + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.ImageFormat = jpype.JClass("com.aspose.cells.ImageFormat") + self.ImageOrPrintOptions = jpype.JClass("com.aspose.cells.ImageOrPrintOptions") + self.SheetRender = jpype.JClass("com.aspose.cells.SheetRender") + + def main(self): + + imageFormat = self.ImageFormat + + #Instantiate a workbook with path to an Excel file + book = self.Workbook(self.dataDir + "Book1.xls") + + #Create an object for ImageOptions + imgOptions = self.ImageOrPrintOptions() + + #Set the image type + imgOptions.setImageFormat(imageFormat.getPng()) + + #Get the first worksheet. + sheet = book.getWorksheets().get(0) + + #Create a SheetRender object for the target sheet + sr =self.SheetRender(sheet, imgOptions) + for i in range(sr.getPageCount()): + + #Generate an image for the worksheet + sr.toImage(i, self.dataDir + "mysheetimg" + ".png") + + + # Print message + print "Images generated successfully." \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/WorkingWithFiles/__init__.pyc b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithFiles/__init__.pyc new file mode 100644 index 00000000..85cc3e91 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithFiles/__init__.pyc differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/WorkingWithRowsAndColumns/__init__.py b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithRowsAndColumns/__init__.py new file mode 100644 index 00000000..0ac2cb35 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithRowsAndColumns/__init__.py @@ -0,0 +1,397 @@ +__author__ = 'fahadadeel' +import jpype + +class RowsAndColumns: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + + def main(self): + + # Inserting a Row + self.insert_row() + + # Inserting Multiple Rows + self.insert_multiple_rows() + + # Deleting a Row + self.delete_row() + + # Deleting Multiple Rows + self.delete_multiple_rows() + + # Inseting one or Multiple Columns + self.insert_column() + + # Deleting a Column + self.delete_column() + + # Hiding Rows and Columns + self.hide_rows_columns() + + # Showing Rows and Columns + self.unhide_rows_columns() + + # Grouping Rows & Columns + self.group_rows_columns() + + # Ungrouping Rows & Columns + self.ungroup_rows_columns() + + # Setting the Row Height + self.set_row_height() + + # Setting the Width of a Column + self.set_column_width() + + # Auto Fit Row + self.autofit_row() + + # Auto Fit Column + self.autofit_column() + + # Copying Rows + self.copy_rows() + + # Copying Columns + self.copy_columns() + + def insert_row(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + "Book1.xls") + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Inserting a row into the worksheet at 3rd position + worksheet.getCells().insertRows(2,1) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Insert Row.xls") + + print "Insert Row Successfully." + + + + def insert_multiple_rows(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Inserting a row into the worksheet at 3rd position + worksheet.getCells().insertRows(2,10) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Insert Multiple Rows.xls") + + print "Insert Multiple Rows Successfully." + + + + def delete_row(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Deleting 3rd row from the worksheet + worksheet.getCells().deleteRows(2,1,True) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Delete Row.xls") + + print "Delete Row Successfully." + + + + def delete_multiple_rows(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Deleting 10 rows from the worksheet starting from 3rd row + worksheet.getCells().deleteRows(2,10,True) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Delete Multiple Rows.xls") + + print "Delete Multiple Rows Successfully." + + + + def insert_column(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Inserting a column into the worksheet at 2nd position + worksheet.getCells().insertColumns(1,1) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Insert Column.xls") + + print "Insert Column Successfully." + + + + def delete_column(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Deleting a column from the worksheet at 2nd position + worksheet.getCells().deleteColumns(1,1,True) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Delete Column.xls") + + print "Delete Column Successfully." + + + + def hide_rows_columns(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + cells = worksheet.getCells() + + # Hiding the 3rd row of the worksheet + cells.hideRow(2) + + # Hiding the 2nd column of the worksheet + cells.hideColumn(1) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Hide Rows And Columns.xls") + + print "Hide Rows And Columns Successfully." + + + + def unhide_rows_columns(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + cells = worksheet.getCells() + + # Unhiding the 3rd row and setting its height to 13.5 + cells.unhideRow(2,13.5) + + # Unhiding the 2nd column and setting its width to 8.5 + cells.unhideColumn(1,8.5) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Unhide Rows And Columns.xls") + + print "Unhide Rows And Columns Successfully." + + + + def group_rows_columns(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + cells = worksheet.getCells() + + # Grouping first six rows (from 0 to 5) and making them hidden by passing true + cells.groupRows(0,5,True) + + # Grouping first three columns (from 0 to 2) and making them hidden by passing true + cells.groupColumns(0,2,True) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Group Rows And Columns.xls") + + print "Group Rows And Columns Successfully." + + + + def ungroup_rows_columns(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Group Rows And Columns.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + cells = worksheet.getCells() + + # Ungrouping first six rows (from 0 to 5) + cells.ungroupRows(0,5) + + # Ungrouping first three columns (from 0 to 2) + cells.ungroupColumns(0,2) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Ungroup Rows And Columns.xls") + + print "Ungroup Rows And Columns Successfully." + + + + def set_row_height(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + cells = worksheet.getCells() + + # Setting the height of the second row to 13 + cells.setRowHeight(1, 13) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Set Row Height.xls") + + print "Set Row Height Successfully." + + + + def set_column_width(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + cells = worksheet.getCells() + + # Setting the width of the second column to 17.5 + cells.setColumnWidth(1, 17.5) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Set Column Width.xls") + + print "Set Column Width Successfully." + + + + def autofit_row(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Auto-fitting the 3rd row of the worksheet + worksheet.autoFitRow(2) + + # Auto-fitting the 3rd row of the worksheet based on the contents in a range of + # cells (from 1st to 9th column) within the row + #worksheet.autoFitRow(2,0,8) # Uncomment this line if you to do AutoFit Row in a Range of Cells. Also, comment line 288. + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Autofit Row.xls") + + print "Autofit Row Successfully." + + + + def autofit_column(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Auto-fitting the 4th column of the worksheet + worksheet.autoFitColumn(3) + + # Auto-fitting the 4th column of the worksheet based on the contents in a range of + # cells (from 1st to 9th row) within the column + #worksheet.autoFitColumn(3,0,8) #Uncomment this line if you to do AutoFit Column in a Range of Cells. Also, comment line 310. + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Autofit Column.xls") + + print "Autofit Column Successfully." + + + + def copy_rows(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Copy the second row with data, formattings, images and drawing objects + # to the 12th row in the worksheet. + worksheet.getCells().copyRow(worksheet.getCells(),1,11) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Copy Rows.xls") + + print "Copy Rows Successfully." + + + + def copy_columns(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook() + + # Accessing the first worksheet in the Excel file + worksheet = workbook.getWorksheets().get(0) + + # Put some data into header rows (A1:A4) + i = 0 + while i < 5: + worksheet.getCells().get(i, 0).setValue("Header Row #i") + + + + + + # Put some detail data (A5:A999) + i = 5 + while i < 1000: + worksheet.getCells().get(i, 0).setValue("Detail Row #i") + + + # Create another Workbook. + workbook1 = Workbook() + + # Get the first worksheet in the book. + worksheet1 = workbook1.getWorksheets().get(0) + + # Copy the first column from the first worksheet of the first workbook into + # the first worksheet of the second workbook. + worksheet1.getCells().copyColumn(worksheet.getCells(),0,2) + + # Autofit the column. + worksheet1.autoFitColumn(2) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Copy Columns.xls") + + print "Copy Columns Successfully." \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/WorkingWithRowsAndColumns/__init__.pyc b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithRowsAndColumns/__init__.pyc new file mode 100644 index 00000000..dee067b3 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithRowsAndColumns/__init__.pyc differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/WorkingWithWorksheets/__init__.py b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithWorksheets/__init__.py new file mode 100644 index 00000000..09b1b15e --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithWorksheets/__init__.py @@ -0,0 +1,556 @@ +__author__ = 'fahadadeel' +import jpype + +class AddingWorksheetstoNewExcelFile: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Adding a new worksheet to the Workbook object + worksheets = workbook.getWorksheets() + + sheetIndex = worksheets.add() + worksheet = worksheets.get(sheetIndex) + + #Setting the name of the newly added worksheet + worksheet.setName("My Worksheet") + + #Saving the Excel file + workbook.save(self.dataDir + "book.out.xls") + + #Print Message + print "Sheet added successfully." + +class CopyingAndMovingWorksheets: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + # Copy Worksheets within a Workbook + self.copy_worksheet() + + # Move Worksheets within Workbook + self.move_worksheet() + + def copy_worksheet(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + "Book1.xls") + + + # Create a Worksheets object with reference to the sheets of the Workbook. + sheets = workbook.getWorksheets() + + # Copy data to a new sheet from an existing sheet within the Workbook. + sheets.addCopy("Sheet1") + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Copy Worksheet.xls") + + print "Copy worksheet, please check the output file." + + + + def move_worksheet(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + "Book1.xls") + + + # Get the first worksheet in the book. + sheet = workbook.getWorksheets().get(0) + + # Move the first sheet to the third position in the workbook. + sheet.moveTo(2) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Move_Worksheet.xls") + + print "Move worksheet, please check the output file." + +class DisplayHideGridlines: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Accessing the first worksheet in the Excel file + worksheets = workbook.getWorksheets() + + worksheet = worksheets.get(0) + + #Hiding the grid lines of the first worksheet of the Excel file + worksheet.setGridlinesVisible(False) + + #Saving the modified Excel file in default (that is Excel 2000) format + workbook.save(self.dataDir + "output.xls") + + # Print message + print "Grid lines are now hidden on sheet 1, please check the output document." + +class DisplayHideScrollBars: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + + def main(self): + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Hiding the vertical scroll bar of the Excel file + workbook.getSettings().setVScrollBarVisible(False) + + #Hiding the horizontal scroll bar of the Excel file + workbook.getSettings().setHScrollBarVisible(False) + + #Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "output.xls") + + # Print message + print "Scroll bars are now hidden, please check the output document." + +class DisplayHideTabs: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + + def main(self): + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Hiding the tabs of the Excel file + workbook.getSettings().setShowTabs(False) + + #Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "output.xls") + + # Print message + print "Tabs are now hidden, please check the output file." + +class FreezePanes: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + + def main(self): + + workbook = self.Workbook(self.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(self.dataDir + "book.out.xls") + + #Print Message + print "Panes freeze successfull." + +class HideUnhideWorksheet: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + + def main(self): + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Accessing the first worksheet in the Excel file + worksheets = workbook.getWorksheets() + worksheet = worksheets.get(0) + + #Hiding the first worksheet of the Excel file + worksheet.setVisible(True) + + #Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "output.xls") + + # Print message + print "Worksheet 1 is now hidden, please check the output document." + +class ManagingPageBreaks: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + # Adding Page Breaks + self.add_page_breaks() + + # Clearing All Page Breaks + self.clear_all_page_breaks() + + # Removing Specific Page Break + self.remove_page_break() + + def add_page_breaks(self): + + # Instantiating a Workbook object + workbook = self.Workbook(self.dataDir + "Book1.xls") + + worksheets = workbook.getWorksheets() + worksheet = worksheets.get(0) + + h_page_breaks = worksheet.getHorizontalPageBreaks() + h_page_breaks.add("Y30") + + v_page_breaks = worksheet.getVerticalPageBreaks() + v_page_breaks.add("Y30") + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Add Page Breaks.xls") + + print "Add page breaks, please check the output file." + + + + def clear_all_page_breaks(self): + + # Instantiating a Workbook object + workbook = self.Workbook(self.dataDir + "Book1.xls") + + + workbook.getWorksheets().get(0).getHorizontalPageBreaks().clear() + workbook.getWorksheets().get(0).getVerticalPageBreaks().clear() + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Clear All Page Breaks.xls") + + print "Clear all page breaks, please check the output file." + + + + def remove_page_break(self): + + # Instantiating a Workbook object + workbook = self.Workbook(self.dataDir + "Book1.xls") + + worksheets = workbook.getWorksheets() + worksheet = worksheets.get(0) + + h_page_breaks = worksheet.getHorizontalPageBreaks() + h_page_breaks.removeAt(0) + + v_page_breaks = worksheet.getVerticalPageBreaks() + v_page_breaks.removeAt(0) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Remove Page Break.xls") + + print "Remove page break, please check the output file." + +class PageBreakPreview: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + + def main(self): + + workbook = self.Workbook(self.dataDir + "Book1.xls") + + #Adding a new worksheet to the Workbook object + worksheets = workbook.getWorksheets() + + worksheet = worksheets.get(0) + + #Displaying the worksheet in page break preview + worksheet.setPageBreakPreview(True) + + #Saving the modified Excel file in default format + workbook.save(self.dataDir + "output.xls") + + # Print message + print "Page break preview is enabled for sheet 1, please check the output document." + +class ProtectingWorksheet: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + #Instantiating a Excel object by excel file path + excel = self.Workbook(self.dataDir + "Book1.xls") + + #Accessing the first worksheet in the Excel file + worksheets = excel.getWorksheets() + worksheet = worksheets.get(0) + + protection = worksheet.getProtection() + + #The following 3 methods are only for Excel 2000 and earlier formats + protection.setAllowEditingContent(False) + protection.setAllowEditingObject(False) + protection.setAllowEditingScenario(False) + + #Protects the first worksheet with a password "1234" + protection.setPassword("1234") + + #Saving the modified Excel file in default format + excel.save(self.dataDir + "output.xls") + + #Print Message + print "Sheet protected successfully." + +class RemovingWorksheetsusingSheetIndex: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.FileInputStream = jpype.JClass("java.io.FileInputStream") + + def main(self): + + fstream=self.FileInputStream(self.dataDir + "Book1.xls"); + + #Instantiating a Workbook object with the stream + workbook = self.Workbook(fstream) + + #Removing a worksheet using its sheet index + workbook.getWorksheets().removeAt(0) + + #Saving the Excel file + workbook.save(self.dataDir + "book.out.xls") + + #Closing the file stream to free all resources + fstream.close() + + + #Print Message + print "Sheet removed successfully." + +class RemovingWorksheetsusingSheetName: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.FileInputStream = jpype.JClass("java.io.FileInputStream") + + def main(self): + + #Creating a file stream containing the Excel file to be opened + fstream = self.FileInputStream(self.dataDir + "Book1.xls"); + + #Instantiating a Workbook object with the stream + workbook = self.Workbook(fstream); + + #Removing a worksheet using its sheet name + workbook.getWorksheets().removeAt("Sheet1"); + + #Saving the Excel file + workbook.save(self.dataDir + "book.out.xls"); + + #Closing the file stream to free all resources + fstream.close(); + + #Print Message + print "Sheet removed successfully."; + +class SettingPageOptions: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.PageOrientationType = jpype.JClass("com.aspose.cells.PageOrientationType") + self.FileInputStream = jpype.JClass("java.io.FileInputStream") + + def main(self): + + self.page_orientation() + + self.scaling() + + def page_orientation(self): + + # Instantiating a Workbook object by excel file path + workbook = self.Workbook() + + # Accessing the first worksheet in the Excel file + worksheets = workbook.getWorksheets() + sheet_index = worksheets.add() + sheet = worksheets.get(sheet_index) + + # Setting the orientation to Portrait + page_setup = sheet.getPageSetup() + page_orientation_type = self.PageOrientationType + page_setup.setOrientation(page_orientation_type.PORTRAIT) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Page_Orientation.xls") + + print "Set page orientation, please check the output file." + + def scaling(self): + # Instantiating a Workbook object by excel file path + workbook = self.Workbook(self.dataDir + 'Book1.xls') + + # Accessing the first worksheet in the Excel file + worksheets = workbook.getWorksheets() + sheet_index = worksheets.add() + sheet = worksheets.get(sheet_index) + + # Setting the scaling factor to 100 + page_setup = sheet.getPageSetup() + page_setup.setZoom(100) + + # Saving the modified Excel file in default (that is Excel 2003) format + workbook.save(self.dataDir + "Scaling.xls") + + print "Set scaling, please check the output file." + +class SplitPanes: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + 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." + +class UnprotectingPasswordProtectedWorksheet: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + self.FileFormatType = jpype.JClass("com.aspose.cells.FileFormatType") + + def main(self): + + filesFormatType = self.FileFormatType + + #Instantiating a Workbook object + workbook = self.Workbook(self.dataDir + "book1.xls") + + worksheets = workbook.getWorksheets() + worksheet = worksheets.get(0) + + protection = worksheet.getProtection() + + #Unprotecting the worksheet with a password + worksheet.unprotect("aspose") + + # Save the excel file. + workbook.save(self.dataDir + "output.xls", filesFormatType.EXCEL_97_TO_2003) + + #Print Message + print "Worksheet unprotected successfully." + +class UnprotectingSimplyProtectedWorksheet: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + self.FileFormatType = jpype.JClass("com.aspose.cells.FileFormatType") + + def main(self): + + filesFormatType = self.FileFormatType + + #Instantiating a Workbook object + workbook = self.Workbook(self.dataDir + "Book1.xls") + + worksheets = workbook.getWorksheets() + worksheet = worksheets.get(0) + + protection = worksheet.getProtection() + + #The following 3 methods are only for Excel 2000 and earlier formats + protection.setAllowEditingContent(False) + protection.setAllowEditingObject(False) + protection.setAllowEditingScenario(False) + + #Unprotecting the worksheet + worksheet.unprotect() + + # Save the excel file. + workbook.save(self.dataDir + "output.xls", filesFormatType.EXCEL_97_TO_2003) + + #Print Message + print "Worksheet unprotected successfully." + +class ZoomFactor: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.SaveFormat = jpype.JClass("com.aspose.cells.SaveFormat") + + def main(self): + + 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." \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/WorkingWithWorksheets/__init__.pyc b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithWorksheets/__init__.pyc new file mode 100644 index 00000000..b6a86920 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/WorkingWithWorksheets/__init__.pyc differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/PKG-INFO b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/PKG-INFO new file mode 100644 index 00000000..cd59110a --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/PKG-INFO @@ -0,0 +1,14 @@ +Metadata-Version: 1.1 +Name: aspose-cells-java-for-python +Version: 1.0 +Summary: Aspose.cells Java for Python is a project that demonstrates / provides the Aspose.Cells for Java API usage examples in Python. +Home-page: https://github.com/asposecells/Aspose_Cells_Java/tree/master/Plugins/Aspose-Cells-Java-for-Python +Author: Fahad Adeel +Author-email: cells@aspose.com +License: UNKNOWN +Description: UNKNOWN +Platform: UNKNOWN +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: License :: OSI Approved :: MIT License +Classifier: Operating System :: OS Independent diff --git a/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/SOURCES.txt b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/SOURCES.txt new file mode 100644 index 00000000..8cbcf625 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/SOURCES.txt @@ -0,0 +1,9 @@ +setup.py +WorkingWithFiles/__init__.py +WorkingWithRowsAndColumns/__init__.py +WorkingWithWorksheets/__init__.py +aspose_cells_java_for_python.egg-info/PKG-INFO +aspose_cells_java_for_python.egg-info/SOURCES.txt +aspose_cells_java_for_python.egg-info/dependency_links.txt +aspose_cells_java_for_python.egg-info/top_level.txt +quickstart/__init__.py \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/dependency_links.txt b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/dependency_links.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/top_level.txt b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/top_level.txt new file mode 100644 index 00000000..813db9d1 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.egg-info/top_level.txt @@ -0,0 +1,4 @@ +WorkingWithWorksheets +quickstart +WorkingWithFiles +WorkingWithRowsAndColumns diff --git a/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.py b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.py new file mode 100644 index 00000000..dfa49771 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/aspose_cells_java_for_python.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from quickstart import HelloWorld +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("./"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "tests/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = HelloWorld(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/dist/aspose-cells-java-for-python-1.0.tar.gz b/Plugins/Aspose-Cells-Java-for-Python/dist/aspose-cells-java-for-python-1.0.tar.gz new file mode 100644 index 00000000..02c4979d Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/dist/aspose-cells-java-for-python-1.0.tar.gz differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/quickstart/__init__.py b/Plugins/Aspose-Cells-Java-for-Python/quickstart/__init__.py new file mode 100644 index 00000000..040a6ec5 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/quickstart/__init__.py @@ -0,0 +1,26 @@ +__author__ = 'fahadadeel' +import jpype + +class HelloWorld: + + def __init__(self,dataDir): + + self.dataDir = dataDir + self.Workbook = jpype.JClass("com.aspose.cells.Workbook") + self.FileFormatType = jpype.JClass("com.aspose.cells.FileFormatType") + + def main(self): + + workbook = self.Workbook() + + sheet = workbook.getWorksheets().get(0) + + cell = sheet.getCells().get("A1") + + cell.setValue("Hello World!") + + file_format_type = self.FileFormatType + + workbook.save(self.dataDir + "HelloWorld.xls" , file_format_type.EXCEL_97_TO_2003 ) + + print "Document has been saved, please check the output file."; \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/quickstart/__init__.pyc b/Plugins/Aspose-Cells-Java-for-Python/quickstart/__init__.pyc new file mode 100644 index 00000000..e890ca30 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/quickstart/__init__.pyc differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/setup.py b/Plugins/Aspose-Cells-Java-for-Python/setup.py new file mode 100644 index 00000000..49e93716 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/setup.py @@ -0,0 +1,19 @@ +__author__ = 'fahadadeel' + +from setuptools import setup, find_packages + +setup( + name = 'aspose-cells-java-for-python', + packages = find_packages(), + version = '1.0', + description = 'Aspose.cells Java for Python is a project that demonstrates / provides the Aspose.Cells for Java API usage examples in Python.', + author='Fahad Adeel', + author_email='cells@aspose.com', + url='https://github.com/asposecells/Aspose_Cells_Java/tree/master/Plugins/Aspose-Cells-Java-for-Python', + classifiers=[ + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent' + ] +) diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/HelloWorld.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/HelloWorld.xls new file mode 100644 index 00000000..6e3f4c4f Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/HelloWorld.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ChartToImage/ChartToImage.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ChartToImage/ChartToImage.py new file mode 100644 index 00000000..4b31b62e --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ChartToImage/ChartToImage.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import ChartToImage +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ChartToImage(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/ConvertingExcelFilesToHtml.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/ConvertingExcelFilesToHtml.py new file mode 100644 index 00000000..932ce6b0 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/ConvertingExcelFilesToHtml.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import ConvertingExcelFilesToHtml +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ConvertingExcelFilesToHtml(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/data/OutBook1.html b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/data/OutBook1.html new file mode 100644 index 00000000..5f0ae8e4 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingExcelFilesToHtml/data/OutBook1.html @@ -0,0 +1,342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + <body> + <p>This page uses frames, but your browser doesn't support them.</p> + </body> + + + diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/ConvertingToMhtmlFiles.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/ConvertingToMhtmlFiles.py new file mode 100644 index 00000000..2922d235 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/ConvertingToMhtmlFiles.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import ConvertingToMhtmlFiles +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ConvertingToMhtmlFiles(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/data/Book1.xlsx b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/data/Book1.xlsx new file mode 100644 index 00000000..69a9cb55 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/data/Book1.xlsx differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/data/Book1.xlsx.out.mht b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/data/Book1.xlsx.out.mht new file mode 100644 index 00000000..6cc5c1cb --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToMhtmlFiles/data/Book1.xlsx.out.mht @@ -0,0 +1,1952 @@ +MIME-Version: 1.0 +X-Document-Type: Workbook +Content-Type: multipart/related; boundary="----=_NextPart_aspose01.20120615" + +This document is a Single File Web Page, also known as a Web Archive file. If you are seeing this message, your browser or editor doesn't support Web Archive files. Please download a browser that supports Web Archive, such as Windows Internet Explorer. + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + +<= +link rel=3dFile-List href=3d"Book1.xlsx.out_files/filelist.xml"> + + + + + + + + + + + + + + + + + + + + <bod= +y> + <p>This page uses frames, but your browser doesn't support them.<= +/p> + </body> + + + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/sheet001.htm +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + + + + + + + + + + + + + + + + + +
 Sheet1  = +;Sheet2  Sheet3 &nb= +sp;Evaluation Warning 
+ + + + +------=_NextPart_aspose01.20120615 +Content-Location:file:///C:/aspose01/Book1.xlsx.out_files/filelist.xml +Content-Transfer-Encoding:quoted-printable +Content-Type:text/html; charset="UTF-8" + + + + + + + + + + <= +o:File HRef=3d"sheet004.htm"/> + + +------=_NextPart_aspose01.20120615-- diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/ConvertingToXPS.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/ConvertingToXPS.py new file mode 100644 index 00000000..79aa8bf8 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/ConvertingToXPS.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import ConvertingToXPS +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ConvertingToXPS(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/data/out_printingxps.xps b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/data/out_printingxps.xps new file mode 100644 index 00000000..72c5e401 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingToXPS/data/out_printingxps.xps differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/ConvertingWorksheetToSVG.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/ConvertingWorksheetToSVG.py new file mode 100644 index 00000000..10ca5929 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/ConvertingWorksheetToSVG.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import ConvertingWorksheetToSVG +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ConvertingWorksheetToSVG(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Sheet1.out.svg b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Sheet1.out.svg new file mode 100644 index 00000000..32c332a4 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Sheet1.out.svg @@ -0,0 +1,1074 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + My + + Data + + + + + + + + + + + + Items + + A + + + + + + + + + + + + Items + + B + + + + + + + + + + + + Items + + C + + + + + + + + + + + + Items + + D + + + + + + + + + + + + Items + + E + + + + + + + + + + + + Items + + F + + + + + + + + + + + + Items + + G + + + + + + + + + + + + Items + + H + + + + + + + + + + + + 1 + 2 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 3 + 3 + + + + + + + + + + + + 6 + 6 + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + 8 + 7 + + + + + + + + + + + + 9 + 9 + + + + + + + + + + + + 3 + 3 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 3 + 3 + + + + + + + + + + + + 7 + 7 + + + + + + + + + + + + 3 + 1 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 5 + 6 + + + + + + + + + + + + 3 + 4 + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + 1 + 2 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 3 + 4 + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + 1 + 2 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 4 + 3 + + + + + + + + + + + + 5 + 4 + + + + + + + + + + + + 8 + 8 + + + + + + + + + + + + 3 + 6 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 4 + 5 + + + + + + + + + + + + 3 + 7 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 1 + 3 + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + 9 + + + + + + + + + + + + 3 + 5 + + + + + + + + + + + + 3 + 4 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 2 + 7 + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + 3 + 2 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 2 + 3 + + + + + + + + + + + + 3 + 2 + + + + + + + + + + + + 2 + 1 + 3 + + + + + + + + + + + + 1 + 8 + 6 + + + + + + + + + + + + 2 + 2 + 4 + + + + + + + + + + + + 3 + 4 + 1 + + + + + + + + + + + + 1 + 4 + 5 + + + + + + + + + + + + 2 + 7 + 6 + + + + + + + + + + + + 2 + 3 + 2 + + + + + + + + + + + + 2 + 0 + 5 + + + + + + + Evaluation Only. Created with Aspose.Cells for Java. Copyright 2003 - 2016 Aspose Pty Ltd. + + + + diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Sheet2.out.svg b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Sheet2.out.svg new file mode 100644 index 00000000..9ae5eff4 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ConvertingWorksheetToSVG/data/Sheet2.out.svg @@ -0,0 +1,3973 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Alphabetical + + List + + of + + Products + + + + + + + + + + + + 2 + 0 + 0 + 2 + / + 1 + 2 + / + 1 + 8 + + + + + + + + + + + + Product + + Name + + + + + + + + + + + + Category + + Name + + + + + + + + + + + + Quantity + + Per + + Unit + + + + + + + + + + + + Units + + In + + Stock + + + + + + + + + + + + Aniseed + + Syrup + + + + + + + + + + + + Condiments + + + + + + + + + + + + 12 + + - + + 550 + + ml + + bottles + + + + + + + + + + + + 1 + 3 + + + + + + + + + + + + Boston + + Crab + + Meat + + + + + + + + + + + + Seafood + + + + + + + + + + + + 24 + + - + + 4 + + oz + + tins + + + + + + + + + + + + 1 + 2 + 3 + + + + + + + + + + + + Camembert + + Pierrot + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 15 + + - + + 300 + + g + + rounds + + + + + + + + + + + + 1 + 9 + + + + + + + + + + + + Carnarvon + + Tigers + + + + + + + + + + + + Seafood + + + + + + + + + + + + 16 + + kg + + pkg. + + + + + + + + + + + + 4 + 2 + + + + + + + + + + + + Chai + + + + + + + + + + + + Beverages + + + + + + + + + + + + 10 + + boxes + + x + + 20 + + bags + + + + + + + + + + + + 3 + 9 + + + + + + + + + + + + Chang + + + + + + + + + + + + Beverages + + + + + + + + + + + + 24 + + - + + 12 + + oz + + bottles + + + + + + + + + + + + 1 + 7 + + + + + + + + + + + + Chartreuse + + verte + + + + + + + + + + + + Beverages + + + + + + + + + + + + 750 + + cc + + per + + bottle + + + + + + + + + + + + 6 + 9 + + + + + + + + + + + + Chef + + Anton's + + Cajun + + Seasoning + + + + + + + + + + + + Condiments + + + + + + + + + + + + 48 + + - + + 6 + + oz + + jars + + + + + + + + + + + + 5 + 3 + + + + + + + + + + + + Chocolade + + + + + + + + + + + + Confections + + + + + + + + + + + + 10 + + pkgs. + + + + + + + + + + + + 1 + 5 + + + + + + + + + + + + Escargots + + de + + Bourgogne + + + + + + + + + + + + Seafood + + + + + + + + + + + + 24 + + pieces + + + + + + + + + + + + 6 + 2 + + + + + + + + + + + + Filo + + Mix + + + + + + + + + + + + Grains/Cereals + + + + + + + + + + + + 16 + + - + + 2 + + kg + + boxes + + + + + + + + + + + + 3 + 8 + + + + + + + + + + + + Geitost + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 500 + + g + + + + + + + + + + + + 1 + 1 + 2 + + + + + + + + + + + + Genen + + Shouyu + + + + + + + + + + + + Condiments + + + + + + + + + + + + 3 + 9 + + + + + + + + + + + + Gnocchi + + di + + nonna + + Alice + + + + + + + + + + + + Grains/Cereals + + + + + + + + + + + + 2 + 1 + + + + + + + + + + + + Gorgonzola + + Telino + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 0 + + + + + + + + + + + + Grandma's + + Boysenberry + + Spread + + + + + + + + + + + + Condiments + + + + + + + + + + + + 12 + + - + + 8 + + oz + + jars + + + + + + + + + + + + 1 + 2 + 0 + + + + + + + + + + + + Gravad + + lax + + + + + + + + + + + + Seafood + + + + + + + + + + + + 12 + + - + + 500 + + g + + pkgs. + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + Gudbrandsdalsost + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 10 + + kg + + pkg. + + + + + + + + + + + + 2 + 6 + + + + + + + + + + + + Gula + + Malacca + + + + + + + + + + + + Condiments + + + + + + + + + + + + 20 + + - + + 2 + + kg + + bags + + + + + + + + + + + + 2 + 7 + + + + + + + + + + + + Ikura + + + + + + + + + + + + Seafood + + + + + + + + + + + + 12 + + - + + 200 + + ml + + jars + + + + + + + + + + + + 3 + 1 + + + + + + + + + + + + Inlagd + + Sill + + + + + + + + + + + + Seafood + + + + + + + + + + + + 24 + + - + + 250 + + g + + jars + + + + + + + + + + + + 1 + 1 + 2 + + + + + + + + + + + + Ipoh + + Coffee + + + + + + + + + + + + Beverages + + + + + + + + + + + + 16 + + - + + 500 + + g + + tins + + + + + + + + + + + + 1 + 7 + + + + + + + + + + + + Jack's + + New + + England + + Clam + + Chowder + + + + + + + + + + + + Seafood + + + + + + + + + + + + 12 + + - + + 12 + + oz + + cans + + + + + + + + + + + + 8 + 5 + + + + + + + + + + + + Konbu + + + + + + + + + + + + Seafood + + + + + + + + + + + + 2 + + kg + + box + + + + + + + + + + + + 2 + 4 + + + + + + + + + + + + Laughing + + Lumberjack + + Lager + + + + + + + + + + + + Beverages + + + + + + + + + + + + 24 + + - + + 12 + + oz + + bottles + + + + + + + + + + + + 5 + 2 + + + + + + + + + + + + Longlife + + Tofu + + + + + + + + + + + + Produce + + + + + + + + + + + + 5 + + kg + + pkg. + + + + + + + + + + + + 4 + + + + + + + + + + + + Louisiana + + Fiery + + Hot + + Pepper + + Sauce + + + + + + + + + + + + Condiments + + + + + + + + + + + + 32 + + - + + 8 + + oz + + bottles + + + + + + + + + + + + 7 + 6 + + + + + + + + + + + + Louisiana + + Hot + + Spiced + + Okra + + + + + + + + + + + + Condiments + + + + + + + + + + + + 24 + + - + + 8 + + oz + + jars + + + + + + + + + + + + 4 + + + + + + + + + + + + Manjimup + + Dried + + Apples + + + + + + + + + + + + Produce + + + + + + + + + + + + 50 + + - + + 300 + + g + + pkgs. + + + + + + + + + + + + 2 + 0 + + + + + + + + + + + + Mascarpone + + Fabioli + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 24 + + - + + 200 + + g + + pkgs. + + + + + + + + + + + + 9 + + + + + + + + + + + + Maxilaku + + + + + + + + + + + + Confections + + + + + + + + + + + + 24 + + - + + 50 + + g + + pkgs. + + + + + + + + + + + + 1 + 0 + + + + + + + + + + + + Mozzarella + + di + + Giovanni + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 24 + + - + + 200 + + g + + pkgs. + + + + + + + + + + + + 1 + 4 + + + + + + + + + + + + Nord-Ost + + Matjeshering + + + + + + + + + + + + Seafood + + + + + + + + + + + + 10 + + - + + 200 + + g + + glasses + + + + + + + + + + + + 1 + 0 + + + + + + + + + + + + Northwoods + + Cranberry + + Sauce + + + + + + + + + + + + Condiments + + + + + + + + + + + + 12 + + - + + 12 + + oz + + jars + + + + + + + + + + + + 6 + + + + + + + + + + + + NuNuCa + + Nu?Nougat-Creme + + + + + + + + + + + + Confections + + + + + + + + + + + + 20 + + - + + 450 + + g + + glasses + + + + + + + + + + + + 7 + 6 + + + + + + + + + + + + Outback + + Lager + + + + + + + + + + + + Beverages + + + + + + + + + + + + 24 + + - + + 355 + + ml + + bottles + + + + + + + + + + + + 1 + 5 + + + + + + + + + + + + Pavlova + + + + + + + + + + + + Confections + + + + + + + + + + + + 32 + + - + + 500 + + g + + boxes + + + + + + + + + + + + 2 + 9 + + + + + + + + + + + + P + + ? + c + h + i + n + o + i + s + + + + + + + + + + + + Meat/Poultry + + + + + + + + + + + + 24 + + boxes + + x + + 2 + + pies + + + + + + + + + + + + 1 + 1 + 5 + + + + + + + + + + + + Queso + + Cabrales + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 1 + + kg + + pkg. + + + + + + + + + + + + 2 + 2 + + + + + + + + + + + + Queso + + Manchego + + La + + Pastora + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 10 + + - + + 500 + + g + + pkgs. + + + + + + + + + + + + 8 + 6 + + + + + + + + + + + + Raclette + + Courdavault + + + + + + + + + + + + Dairy + + Products + + + + + + + + + + + + 5 + + kg + + pkg. + + + + + + + + + + + + 7 + 9 + + + + + + + + + + + + Ravioli + + Angelo + + + + + + + + + + + + Grains/Cereals + + + + + + + + + + + + 24 + + - + + 250 + + g + + pkgs. + + + + + + + + + + + + 3 + 6 + + + + + + + + + + + + Sasquatch + + Ale + + + + + + + + + + + + Beverages + + + + + + + + + + + + 24 + + - + + 12 + + oz + + bottles + + + + + + + + + + + + 1 + 1 + 1 + + + + + + + + + + + + Schoggi + + Schokolade + + + + + + + + + + + + Confections + + + + + + + + + + + + 100 + + - + + 100 + + g + + pieces + + + + + + + + + + + + 4 + 9 + + + + + + + + + + + + Scottish + + Longbreads + + + + + + + + + + + + Confections + + + + + + + + + + + + 10 + + boxes + + x + + 8 + + pieces + + + + + + + + + + + + 6 + + + + + + + + + + + + Sir + + Rodney's + + Marmalade + + + + + + + + + + + + Confections + + + + + + + + + + + + 30 + + gift + + boxes + + + + + + + + + + + + 4 + 0 + + + + + + + + + + + + Sir + + Rodney's + + Scones + + + + + + + + + + + + Confections + + + + + + + + + + + + 24 + + pkgs. + + x + + 4 + + pieces + + + + + + + + + + + + 3 + + + + + + + + + + + + Spegesild + + + + + + + + + + + + Seafood + + + + + + + + + + + + 4 + + - + + 450 + + g + + glasses + + + + + + + + + + + + 9 + 5 + + + + + + + + + + + + Steeleye + + Stout + + + + + + + + + + + + Beverages + + + + + + + + + + + + 24 + + - + + 12 + + oz + + bottles + + + + + + + + + + + + 2 + 0 + + + + + + + + + + + + Tarte + + au + + sucre + + + + + + + + + + + + Confections + + + + + + + + + + + + 48 + + pies + + + + + + + + + + + + 1 + 7 + + + + + + + + + + + + Teatime + + Chocolate + + Biscuits + + + + + + + + + + + + Confections + + + + + + + + + + + + 10 + + boxes + + x + + 12 + + pieces + + + + + + + + + + + + 2 + 5 + + + + + + + + + + + + Tofu + + + + + + + + + + + + Produce + + + + + + + + + + + + 40 + + - + + 100 + + g + + pkgs. + + + + + + + + + + + + 3 + 5 + + + + + + + + + + + + Uncle + + Bob's + + Organic + + Dried + + Pears + + + + + + + + + + + + Produce + + + + + + + + + + + + 12 + + - + + 1 + + lb + + pkgs. + + + + + + + + + + + + 1 + 5 + + + + + + + + + + + + Valkoinen + + suklaa + + + + + + + + + + + + Confections + + + + + + + + + + + + 12 + + - + + 100 + + g + + bars + + + + + + + + + + + + 6 + 5 + + + + + + + + + + + + Vegie-spread + + + + + + + + + + + + Condiments + + + + + + + + + + + + 15 + + - + + 625 + + g + + jars + + + + + + + + + + + + 2 + 4 + + + + + + + + + + + + Zaanse + + koeken + + + + + + + + + + + + Confections + + + + + + + + + + + + 10 + + - + + 4 + + oz + + boxes + + + + + + + + + + + + 3 + 6 + + + + + + + + + + + + SUM + + + + + + + + + + + + 2319 + + + + + + + Evaluation Only. Created with Aspose.Cells for Java. Copyright 2003 - 2016 Aspose Pty Ltd. + + + + diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/Excel2PdfConversion.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/Excel2PdfConversion.py new file mode 100644 index 00000000..ebeccb18 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/Excel2PdfConversion.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import Excel2PdfConversion +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = Excel2PdfConversion(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/data/OutBook1.pdf b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/data/OutBook1.pdf new file mode 100644 index 00000000..a2df56e6 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/Excel2PdfConversion/data/OutBook1.pdf differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/ManagingDocumentProperties.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/ManagingDocumentProperties.py new file mode 100644 index 00000000..f1699026 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/ManagingDocumentProperties.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import ManagingDocumentProperties +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ManagingDocumentProperties(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Test_Workbook.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Test_Workbook.xls new file mode 100644 index 00000000..cf70ccaa Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Test_Workbook.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Test_Workbook_RemovedProperty.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Test_Workbook_RemovedProperty.xls new file mode 100644 index 00000000..6f09e1a1 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/ManagingDocumentProperties/data/Test_Workbook_RemovedProperty.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/OpeningFiles.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/OpeningFiles.py new file mode 100644 index 00000000..a6e8c6d3 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/OpeningFiles.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import OpeningFiles +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = OpeningFiles(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book1TabDelimited.txt b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book1TabDelimited.txt new file mode 100644 index 00000000..9eb1f3d6 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book1TabDelimited.txt @@ -0,0 +1,10 @@ +My Data + +Items A Items B Items C Items D Items E Items F Items G Items H +12 23 33 66 11 87 99 33 +23 22 33 77 31 22 45 56 +34 11 12 23 22 34 11 12 +45 43 54 88 36 45 45 37 +65 65 65 65 13 65 9 35 +34 22 27 22 32 23 23 32 +213 186 224 341 145 276 232 205 diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book2.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book2.xls new file mode 100644 index 00000000..94cebf76 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book2.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book3.xml b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book3.xml new file mode 100644 index 00000000..201fb53a --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book3.xml @@ -0,0 +1,237 @@ + + + + + Amjad + iqbal + 2009-01-28T10:29:45Z + 2009-01-28T10:29:21Z + 2013-04-02T05:54:03Z + pc + 15.00 + + + + + + 8955 + 13275 + 480 + 120 + 2 + False + False + + + + + + + + + + + + + + My Data + + + + + + + + + + + + + Items A + Items B + Items C + Items D + Items E + Items F + Items G + Items H + + + 12 + 23 + 33 + 66 + 11 + 87 + 99 + 33 + + + 23 + 22 + 33 + 77 + 31 + 22 + 45 + 56 + + + 34 + 11 + 12 + 23 + 22 + 34 + 11 + 12 + + + 45 + 43 + 54 + 88 + 36 + 45 + 45 + 37 + + + 65 + 65 + 65 + 65 + 13 + 65 + 9 + 35 + + + 34 + 22 + 27 + 22 + 32 + 23 + 23 + 32 + + + 213 + 186 + 224 + 341 + 145 + 276 + 232 + 205 + +
+ + + + 300 + 300 + + + + 3 + 16 + 7 + + + False + False + +
+ + + + Sheet 2 Contents go here … + +
+ + + + 3 + 10 + 2 + + + False + False + +
+ + + + Sheet 3 Contents go here … + +
+ + + + + 3 + 3 + + + False + False + +
+
diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_CSV.csv b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_CSV.csv new file mode 100644 index 00000000..1fe48d12 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_CSV.csv @@ -0,0 +1,10 @@ +My Data,,,,,,, +,,,,,,, +Items A,Items B,Items C,Items D,Items E,Items F,Items G,Items H +12,23,33,66,11,87,99,33 +23,22,33,77,31,22,45,56 +34,11,12,23,22,34,11,12 +45,43,54,88,36,45,45,37 +65,65,65,65,13,65,9,35 +34,22,27,22,32,23,23,32 +213,186,224,341,145,276,232,205 diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_Excel2007.xlsx b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_Excel2007.xlsx new file mode 100644 index 00000000..69a9cb55 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_Excel2007.xlsx differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_Excel97_2003.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_Excel97_2003.xls new file mode 100644 index 00000000..5ddb78de Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/Book_Excel97_2003.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/encryptedBook.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/encryptedBook.xls new file mode 100644 index 00000000..a3ac0bf7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/OpeningFiles/data/encryptedBook.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/SavingFiles.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/SavingFiles.py new file mode 100644 index 00000000..40ef8700 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/SavingFiles.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import SavingFiles +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = SavingFiles(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.default.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.default.out.xls new file mode 100644 index 00000000..0264b12b Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.default.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xls new file mode 100644 index 00000000..f1666f35 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xlsx b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xlsx new file mode 100644 index 00000000..b9d3d659 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xlsx differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xml b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xml new file mode 100644 index 00000000..26485967 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/SavingFiles/data/book.out.xml @@ -0,0 +1,1162 @@ + + + 6 + + + Amjad + pc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + My Data + + + + + + + + + + + + + + Items A + + Items B + + Items C + + Items D + + Items E + + Items F + + Items G + + Items H + + + + 12 + + 23 + + 33 + + 66 + + 11 + + 87 + + 99 + + 33 + + + + 23 + + 22 + + 33 + + 77 + + 31 + + 22 + + 45 + + 56 + + + + 34 + + 11 + + 12 + + 23 + + 22 + + 34 + + 11 + + 12 + + + + 45 + + 43 + + 54 + + 88 + + 36 + + 45 + + 45 + + 37 + + + + 65 + + 65 + + 65 + + 65 + + 13 + + 65 + + 9 + + 35 + + + + 34 + + 22 + + 27 + + 22 + + 32 + + 23 + + 23 + + 32 + + + + 213 + + 186 + + 224 + + 341 + + 145 + + 276 + + 232 + + 205 + + + + + + + + 119 + + + + 3 + 16 + 7 + R17C8 + + + + + + + + + + + + + + + + + + Alphabetical List of Products + + + + 37608 + + + + + + + + + + Product Name + + Category Name + + Quantity Per Unit + + Units In Stock + + + + Aniseed Syrup + + Condiments + + 12 - 550 ml bottles + + 13 + + + + Boston Crab Meat + + Seafood + + 24 - 4 oz tins + + 123 + + + + Camembert Pierrot + + Dairy Products + + 15 - 300 g rounds + + 19 + + + + Carnarvon Tigers + + Seafood + + 16 kg pkg. + + 42 + + + + Chai + + Beverages + + 10 boxes x 20 bags + + 39 + + + + Chang + + Beverages + + 24 - 12 oz bottles + + 17 + + + + Chartreuse verte + + Beverages + + 750 cc per bottle + + 69 + + + + Chef Anton's Cajun Seasoning + + Condiments + + 48 - 6 oz jars + + 53 + + + + Chocolade + + Confections + + 10 pkgs. + + 15 + + + + Escargots de Bourgogne + + Seafood + + 24 pieces + + 62 + + + + Filo Mix + + Grains/Cereals + + 16 - 2 kg boxes + + 38 + + + + Geitost + + Dairy Products + + 500 g + + 112 + + + + Genen Shouyu + + Condiments + + 39 + + + + Gnocchi di nonna Alice + + Grains/Cereals + + 21 + + + + Gorgonzola Telino + + Dairy Products + + 0 + + + + Grandma's Boysenberry Spread + + Condiments + + 12 - 8 oz jars + + 120 + + + + Gravad lax + + Seafood + + 12 - 500 g pkgs. + + 11 + + + + Gudbrandsdalsost + + Dairy Products + + 10 kg pkg. + + 26 + + + + Gula Malacca + + Condiments + + 20 - 2 kg bags + + 27 + + + + Ikura + + Seafood + + 12 - 200 ml jars + + 31 + + + + Inlagd Sill + + Seafood + + 24 - 250 g jars + + 112 + + + + Ipoh Coffee + + Beverages + + 16 - 500 g tins + + 17 + + + + Jack's New England Clam Chowder + + Seafood + + 12 - 12 oz cans + + 85 + + + + Konbu + + Seafood + + 2 kg box + + 24 + + + + Laughing Lumberjack Lager + + Beverages + + 24 - 12 oz bottles + + 52 + + + + Longlife Tofu + + Produce + + 5 kg pkg. + + 4 + + + + Louisiana Fiery Hot Pepper Sauce + + Condiments + + 32 - 8 oz bottles + + 76 + + + + Louisiana Hot Spiced Okra + + Condiments + + 24 - 8 oz jars + + 4 + + + + Manjimup Dried Apples + + Produce + + 50 - 300 g pkgs. + + 20 + + + + Mascarpone Fabioli + + Dairy Products + + 24 - 200 g pkgs. + + 9 + + + + Maxilaku + + Confections + + 24 - 50 g pkgs. + + 10 + + + + Mozzarella di Giovanni + + Dairy Products + + 24 - 200 g pkgs. + + 14 + + + + Nord-Ost Matjeshering + + Seafood + + 10 - 200 g glasses + + 10 + + + + Northwoods Cranberry Sauce + + Condiments + + 12 - 12 oz jars + + 6 + + + + NuNuCa Nu?Nougat-Creme + + Confections + + 20 - 450 g glasses + + 76 + + + + Outback Lager + + Beverages + + 24 - 355 ml bottles + + 15 + + + + Pavlova + + Confections + + 32 - 500 g boxes + + 29 + + + + P鈚?chinois + + Meat/Poultry + + 24 boxes x 2 pies + + 115 + + + + Queso Cabrales + + Dairy Products + + 1 kg pkg. + + 22 + + + + Queso Manchego La Pastora + + Dairy Products + + 10 - 500 g pkgs. + + 86 + + + + Raclette Courdavault + + Dairy Products + + 5 kg pkg. + + 79 + + + + Ravioli Angelo + + Grains/Cereals + + 24 - 250 g pkgs. + + 36 + + + + Sasquatch Ale + + Beverages + + 24 - 12 oz bottles + + 111 + + + + Schoggi Schokolade + + Confections + + 100 - 100 g pieces + + 49 + + + + Scottish Longbreads + + Confections + + 10 boxes x 8 pieces + + 6 + + + + Sir Rodney's Marmalade + + Confections + + 30 gift boxes + + 40 + + + + Sir Rodney's Scones + + Confections + + 24 pkgs. x 4 pieces + + 3 + + + + Spegesild + + Seafood + + 4 - 450 g glasses + + 95 + + + + Steeleye Stout + + Beverages + + 24 - 12 oz bottles + + 20 + + + + Tarte au sucre + + Confections + + 48 pies + + 17 + + + + Teatime Chocolate Biscuits + + Confections + + 10 boxes x 12 pieces + + 25 + + + + Tofu + + Produce + + 40 - 100 g pkgs. + + 35 + + + + Uncle Bob's Organic Dried Pears + + Produce + + 12 - 1 lb pkgs. + + 15 + + + + Valkoinen suklaa + + Confections + + 12 - 100 g bars + + 65 + + + + Vegie-spread + + Condiments + + 15 - 625 g jars + + 24 + + + + Zaanse koeken + + Confections + + 10 - 4 oz boxes + + 36 + + + + SUM + + + + 2319 + + + + + + + 9 + 2 + 2 + + + + 3 + 14 + 4 + R15C5 + + + + + + + + + + + 9 + 2 + 2 + + + + 3 + R1C1 + + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2016 Aspose Pty Ltd. + + + + + + + 9 + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2016 Aspose Pty Ltd. + + + + + + + 9 + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2016 Aspose Pty Ltd. + + + + + + + 9 + + + + + + + + Evaluation Only. Created with Aspose.Cells for Java.Copyright 2003 - 2016 Aspose Pty Ltd. + + + + + + + 9 + + + + diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/WorksheetToImage.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/WorksheetToImage.py new file mode 100644 index 00000000..cc127f5c --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/WorksheetToImage.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithFiles import WorksheetToImage +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = WorksheetToImage(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/data/Book1.xls new file mode 100644 index 00000000..058ee6c7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/data/mysheetimg.png b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/data/mysheetimg.png new file mode 100644 index 00000000..ccdd8fd7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithFiles/WorksheetToImage/data/mysheetimg.png differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/RowsAndColumns.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/RowsAndColumns.py new file mode 100644 index 00000000..96c6fa3d --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/RowsAndColumns.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithRowsAndColumns import RowsAndColumns +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = RowsAndColumns(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Column.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Column.xls new file mode 100644 index 00000000..2d6e3be8 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Column.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Multiple Rows.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Multiple Rows.xls new file mode 100644 index 00000000..6ddbe7b6 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Multiple Rows.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Row.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Row.xls new file mode 100644 index 00000000..c0245364 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Delete Row.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Group Rows And Columns.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Group Rows And Columns.xls new file mode 100644 index 00000000..402802bb Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Group Rows And Columns.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Hide Rows And Columns.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Hide Rows And Columns.xls new file mode 100644 index 00000000..f9f5b94a Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Hide Rows And Columns.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Column.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Column.xls new file mode 100644 index 00000000..b153c210 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Column.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Multiple Rows.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Multiple Rows.xls new file mode 100644 index 00000000..3e6432e1 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Multiple Rows.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Row.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Row.xls new file mode 100644 index 00000000..59b5e3b2 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Insert Row.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Ungroup Rows And Columns.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Ungroup Rows And Columns.xls new file mode 100644 index 00000000..fb38389e Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Ungroup Rows And Columns.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Unhide Rows And Columns.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Unhide Rows And Columns.xls new file mode 100644 index 00000000..23b0105c Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithRowsAndColumns/RowsAndColumns/data/Unhide Rows And Columns.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/AddingWorksheetstoNewExcelFile.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/AddingWorksheetstoNewExcelFile.py new file mode 100644 index 00000000..aa5d66d2 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/AddingWorksheetstoNewExcelFile.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import AddingWorksheetstoNewExcelFile +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = AddingWorksheetstoNewExcelFile(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/data/book.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/data/book.out.xls new file mode 100644 index 00000000..4c413231 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/AddingWorksheetstoNewExcelFile/data/book.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/CopyingAndMovingWorksheets.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/CopyingAndMovingWorksheets.py new file mode 100644 index 00000000..374e352f --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/CopyingAndMovingWorksheets.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import CopyingAndMovingWorksheets +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = CopyingAndMovingWorksheets(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/data/Copy Worksheet.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/data/Copy Worksheet.xls new file mode 100644 index 00000000..85ebfd62 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/CopyingAndMovingWorksheets/data/Copy Worksheet.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/DisplayHideGridlines.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/DisplayHideGridlines.py new file mode 100644 index 00000000..fb44f63d --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/DisplayHideGridlines.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import DisplayHideGridlines +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = DisplayHideGridlines(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/data/output.xls new file mode 100644 index 00000000..c1cb9719 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideGridlines/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/DisplayHideScrollBars.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/DisplayHideScrollBars.py new file mode 100644 index 00000000..26d1499c --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/DisplayHideScrollBars.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import DisplayHideScrollBars +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = DisplayHideScrollBars(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/data/output.xls new file mode 100644 index 00000000..9d6245b9 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideScrollBars/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/DisplayHideTabs.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/DisplayHideTabs.py new file mode 100644 index 00000000..4503a9d3 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/DisplayHideTabs.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import DisplayHideTabs +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = DisplayHideTabs(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/data/output.xls new file mode 100644 index 00000000..f1ec162b Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/DisplayHideTabs/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/FreezePanes.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/FreezePanes.py new file mode 100644 index 00000000..e078bfba --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/FreezePanes.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import FreezePanes +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = FreezePanes(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/data/book.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/data/book.out.xls new file mode 100644 index 00000000..6c1dae5e Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/FreezePanes/data/book.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/HideUnhideWorksheet.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/HideUnhideWorksheet.py new file mode 100644 index 00000000..2cf3aaf2 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/HideUnhideWorksheet.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import HideUnhideWorksheet +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = HideUnhideWorksheet(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/data/output.xls new file mode 100644 index 00000000..9ab76f78 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/HideUnhideWorksheet/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/ManagingPageBreaks.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/ManagingPageBreaks.py new file mode 100644 index 00000000..34dd5053 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/ManagingPageBreaks.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import ManagingPageBreaks +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ManagingPageBreaks(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Add Page Breaks.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Add Page Breaks.xls new file mode 100644 index 00000000..80adccad Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Add Page Breaks.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Clear All Page Breaks.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Clear All Page Breaks.xls new file mode 100644 index 00000000..9a665440 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ManagingPageBreaks/data/Clear All Page Breaks.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/PageBreakPreview.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/PageBreakPreview.py new file mode 100644 index 00000000..ac50da13 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/PageBreakPreview.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import PageBreakPreview +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = PageBreakPreview(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/data/output.xls new file mode 100644 index 00000000..9a0b598e Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/PageBreakPreview/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/ProtectingWorksheet.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/ProtectingWorksheet.py new file mode 100644 index 00000000..edfe1402 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/ProtectingWorksheet.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import ProtectingWorksheet +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ProtectingWorksheet(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/data/output.xls new file mode 100644 index 00000000..47af7a25 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ProtectingWorksheet/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/RemovingWorksheetsusingSheetIndex.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/RemovingWorksheetsusingSheetIndex.py new file mode 100644 index 00000000..d449e786 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/RemovingWorksheetsusingSheetIndex.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import RemovingWorksheetsusingSheetIndex +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = RemovingWorksheetsusingSheetIndex(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/data/book.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/data/book.out.xls new file mode 100644 index 00000000..33c40106 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetIndex/data/book.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/RemovingWorksheetsusingSheetName.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/RemovingWorksheetsusingSheetName.py new file mode 100644 index 00000000..79ffd38a --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/RemovingWorksheetsusingSheetName.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import RemovingWorksheetsusingSheetName +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = RemovingWorksheetsusingSheetName(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/data/book.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/data/book.out.xls new file mode 100644 index 00000000..ca8fedb8 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/RemovingWorksheetsusingSheetName/data/book.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/SettingPageOptions.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/SettingPageOptions.py new file mode 100644 index 00000000..2f038826 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/SettingPageOptions.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import SettingPageOptions +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = SettingPageOptions(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Page_Orientation.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Page_Orientation.xls new file mode 100644 index 00000000..372d89f7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Page_Orientation.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Scaling.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Scaling.xls new file mode 100644 index 00000000..8802eea7 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SettingPageOptions/data/Scaling.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/SplitPanes.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/SplitPanes.py new file mode 100644 index 00000000..27fb2625 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/SplitPanes.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import SplitPanes +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = SplitPanes(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/data/book.out.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/data/book.out.xls new file mode 100644 index 00000000..bec1ec33 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/SplitPanes/data/book.out.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/UnprotectingPasswordProtectedWorksheet.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/UnprotectingPasswordProtectedWorksheet.py new file mode 100644 index 00000000..4266f8c7 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/UnprotectingPasswordProtectedWorksheet.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import UnprotectingPasswordProtectedWorksheet +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = UnprotectingPasswordProtectedWorksheet(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/data/book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/data/book1.xls new file mode 100644 index 00000000..011d4eb2 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/data/book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/data/output.xls new file mode 100644 index 00000000..c2673b48 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingPasswordProtectedWorksheet/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/UnprotectingSimplyProtectedWorksheet.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/UnprotectingSimplyProtectedWorksheet.py new file mode 100644 index 00000000..10260ea0 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/UnprotectingSimplyProtectedWorksheet.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import UnprotectingSimplyProtectedWorksheet +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = UnprotectingSimplyProtectedWorksheet(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/data/output.xls new file mode 100644 index 00000000..8cb16c76 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/UnprotectingSimplyProtectedWorksheet/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/ZoomFactor.py b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/ZoomFactor.py new file mode 100644 index 00000000..8b48000c --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/ZoomFactor.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from WorkingWithWorksheets import ZoomFactor +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = ZoomFactor(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/data/Book1.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/data/Book1.xls new file mode 100644 index 00000000..cfb06816 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/data/Book1.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/data/output.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/data/output.xls new file mode 100644 index 00000000..6d231568 Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/WorkingWithWorksheets/ZoomFactor/data/output.xls differ diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/quickstart/HelloWorld.py b/Plugins/Aspose-Cells-Java-for-Python/tests/quickstart/HelloWorld.py new file mode 100644 index 00000000..7d631a97 --- /dev/null +++ b/Plugins/Aspose-Cells-Java-for-Python/tests/quickstart/HelloWorld.py @@ -0,0 +1,21 @@ +# To change this license header, choose License Headers in Project Properties. +# To change this template file, choose Tools | Templates +# and open the template in the editor. + +#if __name__ == "__main__": +# print "Hello World" + +from quickstart import HelloWorld +import jpype +import os.path + +asposeapispath = os.path.join(os.path.abspath("../../"), "lib/") +dataDir = os.path.join(os.path.abspath("./"), "data/") + +print "You need to put your Aspose.Cells for Java APIs .jars in this folder:\n"+asposeapispath + +#print dataDir +jpype.startJVM(jpype.getDefaultJVMPath(), "-Djava.ext.dirs=%s" % asposeapispath) + +hw = HelloWorld(dataDir) +hw.main() \ No newline at end of file diff --git a/Plugins/Aspose-Cells-Java-for-Python/tests/quickstart/data/HelloWorld.xls b/Plugins/Aspose-Cells-Java-for-Python/tests/quickstart/data/HelloWorld.xls new file mode 100644 index 00000000..6e3f4c4f Binary files /dev/null and b/Plugins/Aspose-Cells-Java-for-Python/tests/quickstart/data/HelloWorld.xls differ