Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Plugins/Aspose_Cells_for_Apache_POI/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="lib" path="D:/Banckle/workspaces/ApachePOI_GitHub/lib/Aspose/aspose-cells-8.3.0.jar"/>
<classpathentry kind="lib" path="D:/Banckle/workspaces/ApachePOI_GitHub/lib/ApachePOI/poi-3.11-beta1-20140306.jar"/>
<classpathentry kind="lib" path="D:/Banckle/workspaces/ApachePOI_GitHub/lib/ApachePOI/poi-ooxml-3.11-beta1-20140306.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions Plugins/Aspose_Cells_for_Apache_POI/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Aspose_Cells_for_ApachePOI</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
285 changes: 285 additions & 0 deletions Plugins/Aspose_Cells_for_Apache_POI/Examples.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
<?xml version="1.0" encoding="UTF-8"?>
<Data>
<Folders>
<Folder>
<Title>Features Comparison</Title>
<Description>
Contain the code comparison for features in Apache POI SS SDK and Aspose.Cells
These examples are helpful for developers who want to compare Apache POI with Aspose OR migrate from Apache POI to Aspose.
</Description>
<FolderName>featurescomparison</FolderName>
<Order>1</Order>
<Folders>
<Folder>
<Title>Working with Workbook</Title>
<Description>This folder contain the examples to deal with Workbooks.</Description>
<FolderName>workingwithworkbook</FolderName>
<Order>1</Order>
<Examples>
<Example>
<Title>Create New Workbook</Title>
<Description>How to create new Workbook.</Description>
<FolderName>createnewworkbook</FolderName>
<Order>1</Order>
<OutputFiles>
<DataFile>
<Path>..\data\newWorkBook_Aspose_Out.xlsx</Path>
</DataFile>
<DataFile>
<Path>..\data\newWorkBook_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Add Data in Cells</Title>
<Description>How to add data in cells.</Description>
<FolderName>adddataincells</FolderName>
<Order>2</Order>
<OutputFiles>
<DataFile>
<Path>..\data\DataInCells_Aspose_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\DataInCells_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Set Print Area</Title>
<Description>How to Set Print Area.</Description>
<FolderName>setprintarea</FolderName>
<Order>3</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposePrintArea_Out.xlsx</Path>
</DataFile>
<DataFile>
<Path>..\data\ApachePrintArea_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
</Examples>
</Folder>
<Folder>
<Title>Working with Worksheets</Title>
<Description>This folder contain the examples to deal with worksheets.</Description>
<FolderName>workingwithworksheets</FolderName>
<Order>1</Order>
<Examples>
<Example>
<Title>Create New Worksheet</Title>
<Description>How to create new worksheet.</Description>
<FolderName>createnewworksheet</FolderName>
<Order>1</Order>
<OutputFiles>
<DataFile>
<Path>..\data\newWorksheet_Aspose_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\newWorksheet_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Copy Sheet Within Workbook</Title>
<Description>How to copy sheets with in workbook.</Description>
<FolderName>copysheetwithinworkbook</FolderName>
<Order>2</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeCopyWorkbook_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Re-Order Sheets Within Workbook</Title>
<Description>How to re-order sheets (change sequence number of sheet) with in workbook.</Description>
<FolderName>reordersheetswithinworkbook</FolderName>
<Order>3</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeMoveSheet_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\Apache_Reordered_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Zoom Factor</Title>
<Description>How to set zoom value for worksheet</Description>
<FolderName>zoomfactor</FolderName>
<Order>4</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeZoom_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\ApacheZoom_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Header and Footers</Title>
<Description>Working wih header and footers</Description>
<FolderName>headerandfooter</FolderName>
<Order>5</Order>
<InputFiles>
<DataFile>
<Path>..\data\footer.png</Path>
</DataFile>
</InputFiles>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeHeaderFooter_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\ApacheHeaderFooter_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
</Examples>
</Folder>
<Folder>
<Title>Working with Cells, Rows and Columns</Title>
<Description>This folder contain the examples to deal with Cells, Rows and Columns.</Description>
<FolderName>workingwithcellsrowscolumns</FolderName>
<Order>1</Order>
<Examples>
<Example>
<Title>Freeze Panes</Title>
<Description>How to freeze desired Rows and Columns</Description>
<FolderName>freezepanes</FolderName>
<Order>1</Order>
<OutputFiles>
<DataFile>
<Path>..\data\workbook_Aspose_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\workbook_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Hide and Unhide Cells</Title>
<Description>Shows how to hide and unhide specific Cells</Description>
<FolderName>hideunhidecells</FolderName>
<Order>2</Order>
<InputFiles>
<DataFile>
<Path>..\data\workbook.xls</Path>
</DataFile>
</InputFiles>
<OutputFiles>
<DataFile>
<Path>..\data\hideUnhideCells_Aspose_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\hideUnhideCells_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Merge Cells</Title>
<Description>How to merge multiple Cells</Description>
<FolderName>mergecells</FolderName>
<Order>3</Order>
<OutputFiles>
<DataFile>
<Path>..\data\merge_Aspose_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\merge_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Auto Fit Row and Column</Title>
<Description>Adjust the size of rows and column by autofit</Description>
<FolderName>autofitrowandcolumn</FolderName>
<Order>4</Order>
<InputFiles>
<DataFile>
<Path>..\data\workbook.xls</Path>
</DataFile>
</InputFiles>
<OutputFiles>
<DataFile>
<Path>..\data\AutoFit_Aspose_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\AutoFit_Apache_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
</Examples>
</Folder>
<Folder>
<Title>Working with Formatting Features</Title>
<Description>This folder contain the examples to deal with documents.</Description>
<FolderName>workingwithformattingfeatures</FolderName>
<Order>1</Order>
<Examples>
<Example>
<Title>Working with Fonts</Title>
<Description>How to use font options</Description>
<FolderName>workingwithfonts</FolderName>
<Order>1</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeFonts.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\ApacheFonts.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Working with Colors</Title>
<Description>How to different colors</Description>
<FolderName>workingwithcolors</FolderName>
<Order>2</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeColors_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\ApacheColors_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
<Example>
<Title>Working with Borders</Title>
<Description>How to apply border options</Description>
<FolderName>workingwithborders</FolderName>
<Order>3</Order>
<OutputFiles>
<DataFile>
<Path>..\data\AsposeBorders_Out.xls</Path>
</DataFile>
<DataFile>
<Path>..\data\ApacheBorders_Out.xls</Path>
</DataFile>
</OutputFiles>
<Type>Console</Type>
</Example>
</Examples>
</Folder>
</Folders>
</Folder>
</Folders>
</Data>
22 changes: 22 additions & 0 deletions Plugins/Aspose_Cells_for_Apache_POI/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2014 Aspose

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

2 changes: 2 additions & 0 deletions Plugins/Aspose_Cells_for_Apache_POI/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Project in Development Phase
=============================
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package featurescomparison.workingwithcellsrowscolumns.autofitrowandcolumn.java;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;

import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;

public class ApacheAutoFit
{
public static void main(String[] args) throws Exception
{
String dataPath = "src/featurescomparison/workingwithcellsrowscolumns/autofitrowandcolumn/data/";

InputStream inStream = new FileInputStream(dataPath + "workbook.xls");
Workbook workbook = WorkbookFactory.create(inStream);

Sheet sheet = workbook.createSheet("new sheet");
sheet.autoSizeColumn(0); //adjust width of the first column
sheet.autoSizeColumn(1); //adjust width of the second column

FileOutputStream fileOut;
fileOut = new FileOutputStream(dataPath + "AutoFit_Apache_Out.xls");
workbook.write(fileOut);
fileOut.close();

System.out.println("Process Completed.");
}
}
Loading