Skip to content

Instantly share code, notes, and snippets.

View AsposeCellsBlog's full-sized avatar

AsposeCellsBlog AsposeCellsBlog

  • http://products.aspose.com/cells/
View GitHub Profile
@AsposeCellsBlog
AsposeCellsBlog / Apply_Cell_Borders_on_Excel_Worksheet_Cells.cs
Last active October 12, 2018 12:26
Apply Cell Borders on Excel Worksheet Cells - C#
// Directory path for output Excel file.
String dirPath = "D:\\Download\\";
// Create empty workbook object.
Workbook wb = new Workbook();
// Set the default style of the workbook.
Style defultStyle = wb.DefaultStyle;
defultStyle.Font.Name = "Calibri";
defultStyle.Font.Size = 11;
@AsposeCellsBlog
AsposeCellsBlog / Apply_Cell_Borders_on_Excel_Worksheet_Cells.java
Created October 12, 2018 12:29
Apply Cell Borders on Excel Worksheet Cells - Java
// Directory path for output Excel file.
String dirPath = "D:\\Download\\";
// Create empty workbook object.
Workbook wb = new Workbook();
// Set the default style of the workbook.
Style defultStyle = wb.getDefaultStyle();
defultStyle.getFont().setName("Calibri");
defultStyle.getFont().setSize(11);
@AsposeCellsBlog
AsposeCellsBlog / Use_AutoFilter_to_Filter_Excel_Data.cs
Last active October 26, 2018 15:30
Use AutoFilter to Filter Excel Data - C#
// Directory path for input and output Excel files.
String dirPath = "D:/Download/";
// Load the input Excel file containing the sample data.
Workbook wb = new Workbook(dirPath + "sampleUseAutoFilterToFilterExcelData.xlsx");
// Access first worksheet.
Worksheet ws = wb.Worksheets[0];
// Apply auto filter to the range.
@AsposeCellsBlog
AsposeCellsBlog / Use_AutoFilter_to_Filter_Excel_Data.java
Created October 26, 2018 15:31
Use AutoFilter to Filter Excel Data - Java
// Directory path for input and output Excel files.
String dirPath = "D:/Download/";
// Load the input Excel file containing the sample data.
Workbook wb = new Workbook(dirPath + "sampleUseAutoFilterToFilterExcelData.xlsx");
// Access first worksheet.
Worksheet ws = wb.getWorksheets().get(0);
// Apply auto filter to the range.
@AsposeCellsBlog
AsposeCellsBlog / Use_AutoFilter_to_Filter_Excel_Data.cpp
Created October 27, 2018 07:39
Use AutoFilter to Filter Excel Data - C++
// Path of input Excel file.
intrusive_ptr<Aspose::Cells::System::String> inputExcelFile = new Aspose::Cells::System::String("D:/Download/sampleUseAutoFilterToFilterExcelData.xlsx");
// Path of output Excel file.
intrusive_ptr<Aspose::Cells::System::String> outputExcelFile = new Aspose::Cells::System::String("D:/Download/outputUseAutoFilterToFilterExcelData.xlsx");
// Declaration of some variables to be used later.
intrusive_ptr<Aspose::Cells::System::String> strRng;
intrusive_ptr<Aspose::Cells::System::String> strCriteria;
@AsposeCellsBlog
AsposeCellsBlog / Create_Microsoft_Excel_Column_Chart.cs
Last active November 3, 2018 15:07
Create Microsoft Excel Column Chart - C#
// Directory path of input and output files.
string dirPath = "D:/Download/";
// Load source Excel file containing the chart data.
Workbook wb = new Workbook(dirPath + "sampleCreateMicrosoftExcelColumnChart.xlsx");
// Access first worksheet.
Worksheet ws = wb.Worksheets[0];
// Specify dimensions of the chart.
@AsposeCellsBlog
AsposeCellsBlog / Create_Microsoft_Excel_Column_Chart.java
Last active November 3, 2018 15:09
Create Microsoft Excel Column Chart - Java
// Directory path of input and output files.
String dirPath = "D:/Download/";
// Load source Excel file containing the chart data.
Workbook wb = new Workbook(dirPath + "sampleCreateMicrosoftExcelColumnChart.xlsx");
// Access first worksheet.
Worksheet ws = wb.getWorksheets().get(0);
// Specify dimensions of the chart.
@AsposeCellsBlog
AsposeCellsBlog / Create_Microsoft_Excel_Column_Chart.cpp
Last active November 3, 2018 15:10
Create Microsoft Excel Column Chart - C++
// Path of input Excel file.
intrusive_ptr<Aspose::Cells::System::String> inputExcelFile = new Aspose::Cells::System::String("D:/Download/sampleCreateMicrosoftExcelColumnChart.xlsx");
// Path of output Excel file.
intrusive_ptr<Aspose::Cells::System::String> outputExcelFile = new Aspose::Cells::System::String("D:/Download/ccoutputCreateMicrosoftExcelColumnChart.xlsx");
// Load source Excel file containing the chart data.
intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputExcelFile);
// Access first worksheet.
@AsposeCellsBlog
AsposeCellsBlog / Convert_Microsoft_Excel_XLS_to_XLSX.cs
Last active November 16, 2018 13:03
Convert Microsoft Excel XLS to XLSX - C#
// Directory path of input and output files.
string dirPath = "D:/Download/";
// Specify load options Excel97To2003 i.e. XLS format.
LoadOptions opts = new LoadOptions(LoadFormat.Excel97To2003);
// Load the input XLS file inside the Aspose.Cells workbook object.
Aspose.Cells.Workbook wb = new Workbook(dirPath + "SampleConvertMicrosoftExcelXLSToXLSX.xls", opts);
// Save the workbook as output XLSX file.
@AsposeCellsBlog
AsposeCellsBlog / Convert_Microsoft_Excel_XLS_to_XLSX.java
Last active November 16, 2018 13:02
Convert Microsoft Excel XLS to XLSX - Java
// Directory path of input and output files.
String dirPath = "D:/Download/";
// Specify load options Excel97To2003 i.e. XLS format.
LoadOptions opts = new LoadOptions(LoadFormat.EXCEL_97_TO_2003);
// Load the input XLS file inside the Aspose.Cells workbook object.
com.aspose.cells.Workbook wb = new Workbook(dirPath + "SampleConvertMicrosoftExcelXLSToXLSX.xls", opts);
// Save the workbook as output XLSX file.