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. | |
| Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(); | |
| // Access first worksheet. | |
| Worksheet ws = wb.Worksheets[0]; | |
| // Access cell C4 and add some text inside it. | |
| Cell c4 = ws.Cells["C4"]; | |
| c4.PutValue("Aspose File Format APIs"); |
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 input XLS and output XLSX files. | |
| intrusive_ptr<Aspose::Cells::System::String> inputXLSXFile = new Aspose::Cells::System::String("D:/Download/SampleFormatExcelCellNumbersToCurrency.xlsx"); | |
| intrusive_ptr<Aspose::Cells::System::String> outputXLSXFile = new Aspose::Cells::System::String("D:/Download/OutputFormatExcelCellNumbersToCurrency.xlsx"); | |
| // Load the input Excel file inside workbook object. | |
| intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputXLSXFile); | |
| // Access first worksheet. | |
| intrusive_ptr<Aspose::Cells::IWorksheet> ws = wb->GetIWorksheets()->GetObjectByIndex(0); |
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 Excel files. | |
| String dirPath = "D:/Download/"; | |
| // Load the input Excel file inside workbook object. | |
| com.aspose.cells.Workbook wb = new Workbook(dirPath + "SampleFormatExcelCellNumbersToCurrency.xlsx"); | |
| // Access first worksheet. | |
| Worksheet ws = wb.getWorksheets().get(0); | |
| // Format Cell G3 with Curreny > Dollar. |
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 Excel files. | |
| string dirPath = "D:/Download/"; | |
| // Load the input Excel file inside workbook object. | |
| Aspose.Cells.Workbook wb = new Workbook(dirPath + "SampleFormatExcelCellNumbersToCurrency.xlsx"); | |
| // Access first worksheet. | |
| Worksheet ws = wb.Worksheets[0]; | |
| // Format Cell G3 with Curreny > Dollar. |
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 input CSV file and output XLSB files. | |
| intrusive_ptr<Aspose::Cells::System::String> inputCSV = new Aspose::Cells::System::String("D:\\Download\\sampleConvertCSVToExcelFormats.csv"); | |
| intrusive_ptr<Aspose::Cells::System::String> outputXLSB = new Aspose::Cells::System::String("D:\\Download\\outputConvertCSVToExcelFormats.xlsb"); | |
| // Load your sample CSV file inside the Workbook object. | |
| intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook(inputCSV); | |
| // Save CSV file to XLSB format. | |
| workbook->Save(outputXLSB, Aspose::Cells::SaveFormat::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
| // Path of input CSV file and output XLSM files. | |
| intrusive_ptr<Aspose::Cells::System::String> inputCSV = new Aspose::Cells::System::String("D:\\Download\\sampleConvertCSVToExcelFormats.csv"); | |
| intrusive_ptr<Aspose::Cells::System::String> outputXLSM = new Aspose::Cells::System::String("D:\\Download\\outputConvertCSVToExcelFormats.xlsm"); | |
| // Load your sample CSV file inside the Workbook object. | |
| intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook(inputCSV); | |
| // Save CSV file to XLSM format. | |
| workbook->Save(outputXLSM, Aspose::Cells::SaveFormat::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
| // Path of input CSV file and output XLS files. | |
| intrusive_ptr<Aspose::Cells::System::String> inputCSV = new Aspose::Cells::System::String("D:\\Download\\sampleConvertCSVToExcelFormats.csv"); | |
| intrusive_ptr<Aspose::Cells::System::String> outputXLSX = new Aspose::Cells::System::String("D:\\Download\\outputConvertCSVToExcelFormats.xlsx"); | |
| // Load your sample CSV file inside the Workbook object. | |
| intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook(inputCSV); | |
| // Save CSV file to XLSX format. | |
| workbook->Save(outputXLSX, Aspose::Cells::SaveFormat::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
| // Path of input CSV file and output XLS files. | |
| intrusive_ptr<Aspose::Cells::System::String> inputCSV = new Aspose::Cells::System::String("D:\\Download\\sampleConvertCSVToExcelFormats.csv"); | |
| intrusive_ptr<Aspose::Cells::System::String> outputXLS = new Aspose::Cells::System::String("D:\\Download\\outputConvertCSVToExcelFormats.xls"); | |
| // Load your sample CSV file inside the Workbook object. | |
| intrusive_ptr<IWorkbook> workbook = Factory::CreateIWorkbook(inputCSV); | |
| // Save CSV file to XLS format. | |
| workbook->Save(outputXLS, Aspose::Cells::SaveFormat::SaveFormat_Excel97To2003); |
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 = "D:\\Download\\"; | |
| // Load your sample CSV file inside the Workbook object. | |
| com.aspose.cells.Workbook wb = new com.aspose.cells.Workbook(dirPath + "sampleConvertCSVToExcelFormats.csv"); | |
| // Save CSV file to XLSB format. | |
| wb.save(dirPath + "outputConvertCSVToExcelFormats.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 = "D:\\Download\\"; | |
| // Load your sample CSV file inside the Workbook object. | |
| com.aspose.cells.Workbook wb = new com.aspose.cells.Workbook(dirPath + "sampleConvertCSVToExcelFormats.csv"); | |
| // Save CSV file to XLSM format. | |
| wb.save(dirPath + "outputConvertCSVToExcelFormats.xlsm", SaveFormat.XLSM); |