diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2010.sln b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2010.sln new file mode 100644 index 000000000..84dbe1367 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2010.sln @@ -0,0 +1,50 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.01-CreateNewWorkbook", "Aspose.Cells\01-WorkingWithWorkbook\01.01-CreateNewWorkbook\01.01-CreateNewWorkbook.csproj", "{4E0EA667-FE48-47E7-B39F-3EDE41DEC265}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.02-AddDataInCells", "Aspose.Cells\01-WorkingWithWorkbook\01.02-AddDataInCells\01.02-AddDataInCells.csproj", "{16227E08-A3C7-4B34-B748-286BD101F395}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.03-SetPrintArea", "Aspose.Cells\01-WorkingWithWorkbook\01.03-SetPrintArea\01.03-SetPrintArea.csproj", "{70C99E18-30C1-4149-B9DB-253835EFEADB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.01-GettingCellContents", "Aspose.Cells\02-WorkingWithData\02.01-GettingCellContents\02.01-GettingCellContents.csproj", "{1883D209-20E9-4087-BBE1-0588AD59573C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.02-InsertHyperlinksInWorksheet", "Aspose.Cells\02-WorkingWithData\02.02-InsertHyperlinksInWorksheet\02.02-InsertHyperlinksInWorksheet.csproj", "{A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.03-NewLineInCells", "Aspose.Cells\02-WorkingWithData\02.03-NewLineInCells\02.03-NewLineInCells.csproj", "{7E845235-74AF-4F75-8C5B-AD317E73A6E3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Debug|x86.ActiveCfg = Debug|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Debug|x86.Build.0 = Debug|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Release|x86.ActiveCfg = Release|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Release|x86.Build.0 = Release|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Debug|x86.ActiveCfg = Debug|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Debug|x86.Build.0 = Debug|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Release|x86.ActiveCfg = Release|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Release|x86.Build.0 = Release|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Debug|x86.ActiveCfg = Debug|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Debug|x86.Build.0 = Debug|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Release|x86.ActiveCfg = Release|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Release|x86.Build.0 = Release|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Debug|x86.ActiveCfg = Debug|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Debug|x86.Build.0 = Debug|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Release|x86.ActiveCfg = Release|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Release|x86.Build.0 = Release|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Debug|x86.ActiveCfg = Debug|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Debug|x86.Build.0 = Debug|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Release|x86.ActiveCfg = Release|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Release|x86.Build.0 = Release|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Debug|x86.ActiveCfg = Debug|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Debug|x86.Build.0 = Debug|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Release|x86.ActiveCfg = Release|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2012.sln b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2012.sln new file mode 100644 index 000000000..86ab66385 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2012.sln @@ -0,0 +1,50 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.01-CreateNewWorkbook", "Aspose.Cells\01-WorkingWithWorkbook\01.01-CreateNewWorkbook\01.01-CreateNewWorkbook.csproj", "{4E0EA667-FE48-47E7-B39F-3EDE41DEC265}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.02-AddDataInCells", "Aspose.Cells\01-WorkingWithWorkbook\01.02-AddDataInCells\01.02-AddDataInCells.csproj", "{16227E08-A3C7-4B34-B748-286BD101F395}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.03-SetPrintArea", "Aspose.Cells\01-WorkingWithWorkbook\01.03-SetPrintArea\01.03-SetPrintArea.csproj", "{70C99E18-30C1-4149-B9DB-253835EFEADB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.01-GettingCellContents", "Aspose.Cells\02-WorkingWithData\02.01-GettingCellContents\02.01-GettingCellContents.csproj", "{1883D209-20E9-4087-BBE1-0588AD59573C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.02-InsertHyperlinksInWorksheet", "Aspose.Cells\02-WorkingWithData\02.02-InsertHyperlinksInWorksheet\02.02-InsertHyperlinksInWorksheet.csproj", "{A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.03-NewLineInCells", "Aspose.Cells\02-WorkingWithData\02.03-NewLineInCells\02.03-NewLineInCells.csproj", "{7E845235-74AF-4F75-8C5B-AD317E73A6E3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Debug|x86.ActiveCfg = Debug|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Debug|x86.Build.0 = Debug|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Release|x86.ActiveCfg = Release|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Release|x86.Build.0 = Release|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Debug|x86.ActiveCfg = Debug|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Debug|x86.Build.0 = Debug|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Release|x86.ActiveCfg = Release|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Release|x86.Build.0 = Release|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Debug|x86.ActiveCfg = Debug|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Debug|x86.Build.0 = Debug|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Release|x86.ActiveCfg = Release|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Release|x86.Build.0 = Release|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Debug|x86.ActiveCfg = Debug|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Debug|x86.Build.0 = Debug|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Release|x86.ActiveCfg = Release|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Release|x86.Build.0 = Release|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Debug|x86.ActiveCfg = Debug|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Debug|x86.Build.0 = Debug|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Release|x86.ActiveCfg = Release|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Release|x86.Build.0 = Release|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Debug|x86.ActiveCfg = Debug|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Debug|x86.Build.0 = Debug|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Release|x86.ActiveCfg = Release|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2013.sln b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2013.sln new file mode 100644 index 000000000..2af434d92 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells.Examples.2013.sln @@ -0,0 +1,52 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.01-CreateNewWorkbook", "Aspose.Cells\01-WorkingWithWorkbook\01.01-CreateNewWorkbook\01.01-CreateNewWorkbook.csproj", "{4E0EA667-FE48-47E7-B39F-3EDE41DEC265}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.02-AddDataInCells", "Aspose.Cells\01-WorkingWithWorkbook\01.02-AddDataInCells\01.02-AddDataInCells.csproj", "{16227E08-A3C7-4B34-B748-286BD101F395}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01.03-SetPrintArea", "Aspose.Cells\01-WorkingWithWorkbook\01.03-SetPrintArea\01.03-SetPrintArea.csproj", "{70C99E18-30C1-4149-B9DB-253835EFEADB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.01-GettingCellContents", "Aspose.Cells\02-WorkingWithData\02.01-GettingCellContents\02.01-GettingCellContents.csproj", "{1883D209-20E9-4087-BBE1-0588AD59573C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.02-InsertHyperlinksInWorksheet", "Aspose.Cells\02-WorkingWithData\02.02-InsertHyperlinksInWorksheet\02.02-InsertHyperlinksInWorksheet.csproj", "{A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02.03-NewLineInCells", "Aspose.Cells\02-WorkingWithData\02.03-NewLineInCells\02.03-NewLineInCells.csproj", "{7E845235-74AF-4F75-8C5B-AD317E73A6E3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Debug|x86.ActiveCfg = Debug|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Debug|x86.Build.0 = Debug|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Release|x86.ActiveCfg = Release|x86 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265}.Release|x86.Build.0 = Release|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Debug|x86.ActiveCfg = Debug|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Debug|x86.Build.0 = Debug|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Release|x86.ActiveCfg = Release|x86 + {16227E08-A3C7-4B34-B748-286BD101F395}.Release|x86.Build.0 = Release|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Debug|x86.ActiveCfg = Debug|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Debug|x86.Build.0 = Debug|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Release|x86.ActiveCfg = Release|x86 + {70C99E18-30C1-4149-B9DB-253835EFEADB}.Release|x86.Build.0 = Release|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Debug|x86.ActiveCfg = Debug|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Debug|x86.Build.0 = Debug|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Release|x86.ActiveCfg = Release|x86 + {1883D209-20E9-4087-BBE1-0588AD59573C}.Release|x86.Build.0 = Release|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Debug|x86.ActiveCfg = Debug|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Debug|x86.Build.0 = Debug|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Release|x86.ActiveCfg = Release|x86 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD}.Release|x86.Build.0 = Release|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Debug|x86.ActiveCfg = Debug|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Debug|x86.Build.0 = Debug|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Release|x86.ActiveCfg = Release|x86 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/01.01-CreateNewWorkbook.csproj b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/01.01-CreateNewWorkbook.csproj new file mode 100644 index 000000000..802cb939d --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/01.01-CreateNewWorkbook.csproj @@ -0,0 +1,55 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {4E0EA667-FE48-47E7-B39F-3EDE41DEC265} + Exe + Properties + CreateNewWorkbook + CreateNewWorkbook + v2.0 + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Resources\Aspose.Cells.dll + + + + + + + + + + + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/Program.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/Program.cs new file mode 100644 index 000000000..33be84483 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/Program.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Aspose.Cells; + +namespace CreateNewWorkbook +{ + class Program + { + static void Main(string[] args) + { + //---------------------------------------------------- + // NPOI + //---------------------------------------------------- + //IWorkbook workbook = new XSSFWorkbook(); + //workbook.CreateSheet("Sheet A1"); + //workbook.CreateSheet("Sheet A2"); + //workbook.CreateSheet("Sheet A3"); + + //FileStream sw = File.Create("test.xlsx"); + //workbook.Write(sw); + //sw.Close(); + + //---------------------------------------------------- + // Aspose.Cells + //---------------------------------------------------- + Workbook workbook = new Workbook(); // Creating a Workbook object + workbook.Worksheets.Add("Sheet A1"); + workbook.Worksheets.Add("Sheet A2"); + workbook.Worksheets.Add("Sheet A3"); + workbook.Save("test.xlsx", SaveFormat.Xlsx); //Workbooks can be saved in many formats + + } + } +} diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/Properties/AssemblyInfo.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..37283c33b --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CreateNewWorkbook")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CreateNewWorkbook")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("7c12f1b2-bf76-4739-8fa9-ec3d8c77c47f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/bin/Debug/test.xlsx b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/bin/Debug/test.xlsx new file mode 100644 index 000000000..ecc8b5d11 Binary files /dev/null and b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.01-CreateNewWorkbook/bin/Debug/test.xlsx differ diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/01.02-AddDataInCells.csproj b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/01.02-AddDataInCells.csproj new file mode 100644 index 000000000..94fea8c70 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/01.02-AddDataInCells.csproj @@ -0,0 +1,55 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {16227E08-A3C7-4B34-B748-286BD101F395} + Exe + Properties + AddDataInCells + AddDataInCells + v2.0 + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Resources\Aspose.Cells.dll + + + + + + + + + + + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/Program.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/Program.cs new file mode 100644 index 000000000..015664de1 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/Program.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Aspose.Cells; + +namespace AddDataInCells +{ + class Program + { + static void Main(string[] args) + { + //---------------------------------------------------- + // NPOI + //---------------------------------------------------- + //IWorkbook workbook = new XSSFWorkbook(); + //ISheet sheet1 = workbook.CreateSheet("Sheet1"); + //sheet1.CreateRow(0).CreateCell(0).SetCellValue("This is a Sample"); + //int x = 1; + //for (int i = 1; i <= 15; i++) + //{ + // IRow row = sheet1.CreateRow(i); + // for (int j = 0; j < 15; j++) + // { + // row.CreateCell(j).SetCellValue(x++); + // } + //} + //FileStream sw = File.Create("test.xlsx"); + //workbook.Write(sw); + //sw.Close(); + + //---------------------------------------------------- + // Aspose.Cells + //---------------------------------------------------- + //Instantiating a Workbook object + Workbook workbook = new Workbook(); + + //Accessing the added worksheet in the Excel file + Worksheet worksheet = workbook.Worksheets[0]; + + int x = 1; + for (int i = 1; i <= 15; i++) + { + for (int j = 0; j < 15; j++) + { + worksheet.Cells[i, j].Value = x++; + } + } + + workbook.Save("test.xlsx"); + + } + } +} diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/Properties/AssemblyInfo.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..e66c1f00d --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AddDataInCells")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AddDataInCells")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("de91ec1c-50ac-4fe1-aead-354361e59020")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/bin/Debug/test.xlsx b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/bin/Debug/test.xlsx new file mode 100644 index 000000000..7db2fc00b Binary files /dev/null and b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.02-AddDataInCells/bin/Debug/test.xlsx differ diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/01.03-SetPrintArea.csproj b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/01.03-SetPrintArea.csproj new file mode 100644 index 000000000..2dfaf2a00 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/01.03-SetPrintArea.csproj @@ -0,0 +1,55 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {70C99E18-30C1-4149-B9DB-253835EFEADB} + Exe + Properties + SetPrintArea + SetPrintArea + v2.0 + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Resources\Aspose.Cells.dll + + + + + + + + + + + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/Program.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/Program.cs new file mode 100644 index 000000000..749936d14 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/Program.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Aspose.Cells; + +namespace SetPrintArea +{ + class Program + { + static void Main(string[] args) + { + //---------------------------------------------------- + // NPOI + //---------------------------------------------------- + //IWorkbook wb = new XSSFWorkbook(); + //ISheet sheet1 = wb.CreateSheet("new sheet"); + //ISheet sheet2 = wb.CreateSheet("second sheet"); + + //// Set the columns to repeat from column 0 to 2 on the first sheet + //IRow row1 = sheet1.CreateRow(0); + //row1.CreateCell(0).SetCellValue(1); + //row1.CreateCell(1).SetCellValue(2); + //row1.CreateCell(2).SetCellValue(3); + //IRow row2 = sheet1.CreateRow(1); + //row2.CreateCell(1).SetCellValue(4); + //row2.CreateCell(2).SetCellValue(5); + + + //IRow row3 = sheet2.CreateRow(1); + //row3.CreateCell(0).SetCellValue(2.1); + //row3.CreateCell(4).SetCellValue(2.2); + //row3.CreateCell(5).SetCellValue(2.3); + //IRow row4 = sheet2.CreateRow(2); + //row4.CreateCell(4).SetCellValue(2.4); + //row4.CreateCell(5).SetCellValue(2.5); + + //// Set the columns to repeat from column 0 to 2 on the first sheet + //wb.SetRepeatingRowsAndColumns(0, 0, 2, -1, -1); + //// Set the the repeating rows and columns on the second sheet. + //wb.SetRepeatingRowsAndColumns(1, 4, 5, 1, 2); + + ////set the print area for the first sheet + //wb.SetPrintArea(0, 1, 2, 0, 3); + + //FileStream sw = File.Create("test.xlsx"); + //wb.Write(sw); + //sw.Close(); + + //---------------------------------------------------- + // Aspose.Cells + //---------------------------------------------------- + // Instantiating a Workbook object + Workbook workbook = new Workbook(); + workbook.Worksheets.Add("new sheet"); + workbook.Worksheets.Add("second sheet"); + + Worksheet sheet1 = workbook.Worksheets[0]; + sheet1.Cells[0, 0].Value = 1; + sheet1.Cells[0, 1].Value = 2; + sheet1.Cells[0, 2].Value = 3; + sheet1.Cells[1, 0].Value = 4; + sheet1.Cells[1, 1].Value = 5; + + Worksheet sheet2 = workbook.Worksheets[1]; + sheet2.Cells[0, 0].Value = 2.1; + sheet2.Cells[0, 4].Value = 2.2; + sheet2.Cells[0, 5].Value = 2.3; + sheet2.Cells[1, 4].Value = 2.4; + sheet2.Cells[1, 5].Value = 2.5; + + // Accessing the first worksheet in the Workbook file + Worksheet sheet = workbook.Worksheets[0]; + + // Obtaining the reference of the PageSetup of the worksheet + PageSetup pageSetup = sheet.PageSetup; + + // Specifying the cells range (from A1 cell to F20 cell) of the print area + pageSetup.PrintArea = "A1:F20"; + + workbook.Save("test.xlsx"); + } + } +} diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/Properties/AssemblyInfo.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..3c00640d1 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SetPrintArea")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SetPrintArea")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("aed489ba-3a7c-4119-9d49-ada485fed6eb")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/bin/Debug/test.xlsx b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/bin/Debug/test.xlsx new file mode 100644 index 000000000..c22c44369 Binary files /dev/null and b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/01-WorkingWithWorkbook/01.03-SetPrintArea/bin/Debug/test.xlsx differ diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/02.01-GettingCellContents.csproj b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/02.01-GettingCellContents.csproj new file mode 100644 index 000000000..438d31414 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/02.01-GettingCellContents.csproj @@ -0,0 +1,58 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {1883D209-20E9-4087-BBE1-0588AD59573C} + Exe + Properties + GettingCellContents + GettingCellContents + v2.0 + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Resources\Aspose.Cells.dll + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/02.01-GettingCellContents.csproj.user b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/02.01-GettingCellContents.csproj.user new file mode 100644 index 000000000..566c009ac --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/02.01-GettingCellContents.csproj.user @@ -0,0 +1,6 @@ + + + + ShowAllFiles + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/Program.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/Program.cs new file mode 100644 index 000000000..e38f831d7 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/Program.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Aspose.Cells; + +namespace GettingCellContents +{ + class Program + { + static void Main(string[] args) + { + //---------------------------------------------------- + // NPOI + //---------------------------------------------------- + //IWorkbook wb = new XSSFWorkbook("../../data/test.xlsx"); + //ISheet sheet1 = wb.GetSheetAt(0); + + //for (int index = 0; index <= sheet1.LastRowNum; index++) + //{ + // IRow row = sheet1.GetRow(index); + + // foreach (ICell cell in row.Cells) + // { + // CellReference cellRef = new CellReference(row.RowNum, cell.ColumnIndex); + // Console.Write(cellRef.FormatAsString()); + // Console.Write(" - "); + + // switch (cell.CellType) + // { + // case CellType.String: + // Console.Write(cell.StringCellValue); + // break; + // case CellType.Numeric: + // if (DateUtil.IsCellDateFormatted(cell)) + // Console.Write(cell.DateCellValue); + // else + // Console.Write(cell.NumericCellValue); + // break; + // case CellType.Boolean: + // Console.Write(cell.BooleanCellValue); + // break; + // case CellType.Formula: + // Console.Write(cell.CellFormula); + // break; + // } + // Console.WriteLine(); + // } + //} + + //---------------------------------------------------- + // Aspose.Cells + //---------------------------------------------------- + Workbook workbook = new Workbook("../../data/test.xlsx"); + Worksheet sheet1 = workbook.Worksheets[0]; + + Cells cells = sheet1.Cells; + Range range = sheet1.Cells.MaxDisplayRange; + int tcols = range.ColumnCount; + int trows = range.RowCount; + + for (int i = 0 ; i < trows; i++) + { + for (int j = 0 ; j < tcols ; j++) + { + if (cells[i, j].Type != CellValueType.IsNull) + { + Console.WriteLine(cells[i, j].Name + " - " + cells[i, j].Value); + } + } + } + } + } +} diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/Properties/AssemblyInfo.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..1dc403715 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("GettingCellContents")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("GettingCellContents")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d0c1c8ca-1740-4c51-a69e-d532fe799d45")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/data/test.xlsx b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/data/test.xlsx new file mode 100644 index 000000000..da373e335 Binary files /dev/null and b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.01-GettingCellContents/data/test.xlsx differ diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/02.02-InsertHyperlinksInWorksheet.csproj b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/02.02-InsertHyperlinksInWorksheet.csproj new file mode 100644 index 000000000..ece1aa231 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/02.02-InsertHyperlinksInWorksheet.csproj @@ -0,0 +1,56 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {A42CF6F7-7B1F-4CBC-A4F5-BB756D05C5CD} + Exe + Properties + InsertHyperlinksInWorksheet + InsertHyperlinksInWorksheet + v2.0 + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Resources\Aspose.Cells.dll + + + + + + + + + + + + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/Program.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/Program.cs new file mode 100644 index 000000000..a4ef27b6c --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/Program.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Aspose.Cells; + +namespace InsertHyperlinksInWorksheet +{ + class Program + { + static void Main(string[] args) + { + //---------------------------------------------------- + // NPOI + //---------------------------------------------------- + //IWorkbook workbook = new XSSFWorkbook(); + //////cell style for hyperlinks + //////by default hyperlinks are blue and underlined + //ICellStyle hlink_style = workbook.CreateCellStyle(); + //IFont hlink_font = workbook.CreateFont(); + //hlink_font.Underline = FontUnderlineType.Single; + //hlink_font.Color = HSSFColor.Blue.Index; + //hlink_style.SetFont(hlink_font); + + //ICell cell; + //ISheet sheet = workbook.CreateSheet("Hyperlinks"); + + ////URL + //cell = sheet.CreateRow(0).CreateCell(0); + //cell.SetCellValue("URL Link"); + //XSSFHyperlink link = new XSSFHyperlink(HyperlinkType.Url); + //link.Address = ("http://poi.apache.org/"); + //cell.Hyperlink = (link); + //cell.CellStyle = (hlink_style); + + ////link to a file in the current directory + //cell = sheet.CreateRow(1).CreateCell(0); + //cell.SetCellValue("File Link"); + //link = new XSSFHyperlink(HyperlinkType.File); + //link.Address = ("link1.xls"); + //cell.Hyperlink = (link); + //cell.CellStyle = (hlink_style); + + ////e-mail link + //cell = sheet.CreateRow(2).CreateCell(0); + //cell.SetCellValue("Email Link"); + //link = new XSSFHyperlink(HyperlinkType.Email); + ////note, if subject contains white spaces, make sure they are url-encoded + //link.Address = ("mailto:poi@apache.org?subject=Hyperlinks"); + //cell.Hyperlink = (link); + //cell.CellStyle = (hlink_style); + + ////link to a place in this workbook + + ////Create a target sheet and cell + //ISheet sheet2 = workbook.CreateSheet("Target ISheet"); + //sheet2.CreateRow(0).CreateCell(0).SetCellValue("Target ICell"); + + //cell = sheet.CreateRow(3).CreateCell(0); + //cell.SetCellValue("Worksheet Link"); + //link = new XSSFHyperlink(HyperlinkType.Document); + //link.Address = ("'Target ISheet'!A1"); + //cell.Hyperlink = (link); + //cell.CellStyle = (hlink_style); + + //FileStream sw = File.Create("test.xlsx"); + //workbook.Write(sw); + //sw.Close(); + + //---------------------------------------------------- + // Aspose.Cells + //---------------------------------------------------- + Workbook workbook = new Workbook(); // Creating a Workbook object + Worksheet sheet = workbook.Worksheets.Add("Hyperlinks"); + HyperlinkCollection hyperlinks = sheet.Hyperlinks; + + Style style = new Style(); + style.Font.Underline = FontUnderlineType.Single; + style.Font.Color = System.Drawing.Color.Blue; + + sheet.Cells[0, 0].Value = "URL Link"; + hyperlinks.Add(0, 0, 1, 1, "http://www.aspose.com"); + sheet.Cells[0, 0].SetStyle(style); + + //link to a file in the current directory + sheet.Cells[1, 0].Value = "File Link"; + hyperlinks.Add(1, 0, 1, 1, "book1.xls"); + sheet.Cells[1, 0].SetStyle(style); + + //e-mail link + sheet.Cells[2, 0].Value = "Email Link"; + hyperlinks.Add(2, 0, 1, 1, "mailto:marketplace@aspose.com?subject=Hyperlinks"); + sheet.Cells[2, 0].SetStyle(style); + + //link to a place in this workbook + Worksheet sheet2 = workbook.Worksheets.Add("Target ISheet"); + HyperlinkCollection hyperlinks2 = sheet2.Hyperlinks; + sheet2.Cells[3, 0].Value = "Worksheet Link"; + hyperlinks2.Add(3, 0, 1, 1, "Target ISheet!A4"); + sheet2.Cells[3, 0].SetStyle(style); + + workbook.Save("test.xlsx"); + } + } +} diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/Properties/AssemblyInfo.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..bc09fc42d --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("InsertHyperlinksInWorksheet")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("InsertHyperlinksInWorksheet")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("6dda5bde-7251-43ff-8b7b-45ad2ccb499a")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/bin/Debug/test.xlsx b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/bin/Debug/test.xlsx new file mode 100644 index 000000000..726c2529e Binary files /dev/null and b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.02-InsertHyperlinksInWorksheet/bin/Debug/test.xlsx differ diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/02.03-NewLineInCells.csproj b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/02.03-NewLineInCells.csproj new file mode 100644 index 000000000..718d50365 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/02.03-NewLineInCells.csproj @@ -0,0 +1,55 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {7E845235-74AF-4F75-8C5B-AD317E73A6E3} + Exe + Properties + NewLineInCells + NewLineInCells + v2.0 + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\Resources\Aspose.Cells.dll + + + + + + + + + + + + \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/Program.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/Program.cs new file mode 100644 index 000000000..66e06b3f3 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/Program.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Aspose.Cells; + +namespace NewLineInCells +{ + class Program + { + static void Main(string[] args) + { + //---------------------------------------------------- + // NPOI + //---------------------------------------------------- + //IWorkbook workbook = new XSSFWorkbook(); + //ISheet sheet = workbook.CreateSheet("Sheet1"); + + //IRow row = sheet.CreateRow(2); + //ICell cell = row.CreateCell(2); + //cell.SetCellValue("Use \n with word wrap on to create a new line"); + + ////to enable newlines you need set a cell styles with wrap=true + //ICellStyle cs = workbook.CreateCellStyle(); + //cs.WrapText = true; + //cell.CellStyle = cs; + + //FileStream sw = File.Create("test.xlsx"); + //workbook.Write(sw); + //sw.Close(); + + //---------------------------------------------------- + // Aspose.Cells + //---------------------------------------------------- + Workbook workbook = new Workbook(); // Creating a Workbook object + Worksheet sheet = workbook.Worksheets[0]; + sheet.Cells[2,2].Value = "Use \n with word wrap on to create a new line"; + + //Get Cell's Style + Style style = sheet.Cells[2, 2].GetStyle(); + + //Set Text Wrap property to true + style.IsTextWrapped = true; + + //Set Cell's Style + sheet.Cells[2, 2].SetStyle(style); + + workbook.Save("test.xlsx"); + } + } +} diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/Properties/AssemblyInfo.cs b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..a5a9c3a98 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("NewLineInCells")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("NewLineInCells")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("650eb837-94e4-4a2d-b4c1-474c4889f53e")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/bin/Debug/test.xlsx b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/bin/Debug/test.xlsx new file mode 100644 index 000000000..4b841c825 Binary files /dev/null and b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Aspose.Cells/02-WorkingWithData/02.03-NewLineInCells/bin/Debug/test.xlsx differ diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/README.md b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/README.md new file mode 100644 index 000000000..f9542302c --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/README.md @@ -0,0 +1,10 @@ +Project Aspose.Cells for NPOI (HSSF and XSSF) shows how different tasks can be performed using Aspose.Cells .NET APIs in comparison with NPOI. This project is helpful for developers who want to compare NPOI with Aspose.Cells OR migrate from NPOI to Aspose.Cells. + +This initial release of the project have the following comparison examples + +* Create New Workbook +* Add Data in Cells +* Set Print Area +* Getting Cell Contents +* New Line in Cells +* Insert Hyperlinks in Worksheet \ No newline at end of file diff --git a/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Resources/Readme.txt b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Resources/Readme.txt new file mode 100644 index 000000000..3dfee4b67 --- /dev/null +++ b/Plugins/NPOI/Aspose.Cells vs NPOI.HSSF and XSSF/Resources/Readme.txt @@ -0,0 +1,2 @@ + +Please download the latest version of Aspose.Cells for .NET from http://www.aspose.com/community/files/default.aspx \ No newline at end of file diff --git a/Plugins/NPOI/README.md b/Plugins/NPOI/README.md new file mode 100644 index 000000000..c7a9150dd --- /dev/null +++ b/Plugins/NPOI/README.md @@ -0,0 +1,5 @@ +# Aspose.Cells for NPOI + +We have developed the following examples for NPOI .NET version of POI Java project + +* [Aspose.Cells vs NPOI.HSSF and XSSF](Aspose.Cells vs NPOI.HSSF and XSSF) \ No newline at end of file diff --git a/Plugins/README.md b/Plugins/README.md index 40d712b28..64c2a8774 100644 --- a/Plugins/README.md +++ b/Plugins/README.md @@ -2,4 +2,5 @@ This section contains the following Platforms * [Aspose.Cells Vs OpenXML Spreadsheets](Aspose.Cells Vs OpenXML Spreadsheets) -* [Export Members to Excel](Aspose.UmbracoMemberExportToExcel) \ No newline at end of file +* [Export Members to Excel](Aspose.UmbracoMemberExportToExcel) +* [NPOI - .NET version of POI Java project](NPOI) \ No newline at end of file