This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path for input and output files. | |
| string dirPath = "E:/InputOutputDir/"; | |
| // Load input XLS file inside the Aspose.Cells workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(dirPath + "InputXLS.xls"); | |
| // Save the workbook in output Tab Delimited format. | |
| workbook.Save(dirPath + "OutputTabDelimited.txt", SaveFormat.TabDelimited); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path for input and output files. | |
| string dirPath = "E:/InputOutputDir/"; | |
| // Load input XLS file inside the Aspose.Cells workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(dirPath + "InputXLS.xls"); | |
| // Save the workbook in output TSV format. | |
| workbook.Save(dirPath + "OutputTSV.tsv", SaveFormat.TSV); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path for input and output files. | |
| string dirPath = "E:/InputOutputDir/"; | |
| // Load input XLS file inside the Aspose.Cells workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(dirPath + "InputXLS.xls"); | |
| // Save the workbook in output CSV format. | |
| workbook.Save(dirPath + "OutputCSV.csv", SaveFormat.CSV); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path for input and output files. | |
| string dirPath = "E:/InputOutputDir/"; | |
| // Load input XLS file inside the Aspose.Cells workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(dirPath + "InputXLS.xls"); | |
| // Save the workbook in output XLSB format. | |
| workbook.Save(dirPath + "OutputXLSB.xlsb", SaveFormat.Xlsb); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path for input and output files. | |
| string dirPath = "E:/InputOutputDir/"; | |
| // Load input XLS file inside the Aspose.Cells workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(dirPath + "InputXLS.xls"); | |
| // Save the workbook in output XLSM format. | |
| workbook.Save(dirPath + "OutputXLSM.xlsm", SaveFormat.Xlsm); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path for input and output files. | |
| string dirPath = "E:/InputOutputDir/"; | |
| // Load input XLS file inside the Aspose.Cells workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(dirPath + "InputXLS.xls"); | |
| // Save the workbook in output XLSX format. | |
| workbook.Save(dirPath + "OutputXLSX.xlsx", SaveFormat.Xlsx); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Directory path where output Excel files will be created. | |
| string dirPath = "E:/OutputDir/"; | |
| // Create Aspose.Cells empty workbook object. | |
| Aspose.Cells.Workbook workbook = new Workbook(); | |
| // Put some value in cell C4 of first worksheet. | |
| workbook.Worksheets[0].Cells["C4"].PutValue("Welcome to Aspose.Cells API to create and manipulate Excel files!"); | |
| // Save the workbook in output XLS format. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Path of output Excel file | |
| intrusive_ptr<Aspose::Cells::System::String> outputCenterAlignExcelCell = new Aspose::Cells::System::String("D:\\Download\\outputCenterAlignExcelCell.xlsx"); | |
| // Create empty Workbook object. | |
| intrusive_ptr<IWorkbook> wb = Factory::CreateIWorkbook(); | |
| // Access first worksheet. | |
| intrusive_ptr<Aspose::Cells::IWorksheet> ws = wb->GetIWorksheets()->GetObjectByIndex(0); | |
| // Access cell C4. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Path of output Excel file | |
| intrusive_ptr<Aspose::Cells::System::String> outputCenterAlignExcelCell = new Aspose::Cells::System::String("D:\\Download\\outputCenterAlignExcelCell.xlsx"); | |
| // Create empty Workbook object. | |
| intrusive_ptr<IWorkbook> wb = Factory::CreateIWorkbook(); | |
| // Access first worksheet. | |
| intrusive_ptr<Aspose::Cells::IWorksheet> ws = wb->GetIWorksheets()->GetObjectByIndex(0); | |
| // Access cell C4. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create empty Workbook object. | |
| com.aspose.cells.Workbook wb = new com.aspose.cells.Workbook(); | |
| // Access first worksheet. | |
| Worksheet ws = wb.getWorksheets().get(0); | |
| // Access cell C4 and add some text inside it. | |
| Cell c4 = ws.getCells().get("C4"); | |
| c4.putValue("Aspose File Format APIs"); |
NewerOlder