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 / Convert_TSV_to_XLS_format.cs
Created November 16, 2018 16:02
Convert TSV to XLS format - C#
// Directory path for input and output files.
string dirPath = "D:\\Download\\";
// Specify that you want to load TSV file.
LoadOptions opts = new LoadOptions(LoadFormat.TSV);
// Load your sample TSV file inside the Workbook object using specified LoadOptions.
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(dirPath + "sampleConvertTSVToExcelFormats.tsv", opts);
// Save TSV file to XLS format.
@AsposeCellsBlog
AsposeCellsBlog / Generate_Excel_Cell_Data_with_Formatting_and_Save_to_XLSX,_PDF_and_HTML.cs
Created November 16, 2018 14:17
Generate Excel Cell Data with Formatting and Save to XLSX, PDF and HTML formats using Aspose.Cells API.
// The following sample code uses Aspose.Cells API to ...
// Generate Excel Cell Data with Formatting and Save to XLSX, PDF and HTML formats.
//Create Empty Workbook.
Workbook wb = new Workbook();
//Access First Worksheet.
Worksheet ws = wb.Worksheets[0];
//Add Month Data by Rows and Column Indices.
@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.
@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 / 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 / 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.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 / 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 / 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.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.