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
| // Load sample Excel file inside workbook object. | |
| Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook("sampleExcelRange.xlsx"); | |
| // Access first worksheet containing the source range. | |
| Worksheet ws = wb.Worksheets[0]; | |
| // Access second worksheet where source range to be copied. | |
| Worksheet ws2 = wb.Worksheets[1]; | |
| // Create source range object. |
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
| // Load sample Excel file inside workbook object. | |
| Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook("sampleExcelRange.xlsx"); | |
| // Access first worksheet containing the source range. | |
| Worksheet ws = wb.Worksheets[0]; | |
| // Create source range object. | |
| Range srcRng = ws.Cells.CreateRange("B4:H8"); | |
| // Create destination range object. |
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> inputXLSFile = new Aspose::Cells::System::String("D:/Download/SampleConvertMicrosoftExcelXLSToXLSX.xls"); | |
| intrusive_ptr<Aspose::Cells::System::String> outputXLSXFile = new Aspose::Cells::System::String("D:/Download/OutputConvertMicrosoftExcelXLSToXLSX.xlsx"); | |
| // Specify load options Excel97To2003 i.e. XLS format. | |
| intrusive_ptr<Aspose::Cells::ILoadOptions> opts = Aspose::Cells::Factory::CreateILoadOptions(Aspose::Cells::LoadFormat_Excel97To2003); | |
| // Load the input XLS file inside the Aspose.Cells workbook object. | |
| intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputXLSFile, opts); |
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\\"; | |
| // 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. | |
| com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToExcelFormats.tsv", opts); | |
| // Save TSV file to XLSB 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
| // 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. | |
| com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToExcelFormats.tsv", opts); | |
| // Save TSV file to XLSM 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
| // 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. | |
| com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToExcelFormats.tsv", opts); | |
| // Save TSV file to XLSX 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
| // 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. | |
| com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToExcelFormats.tsv", opts); | |
| // Save TSV file to 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
| // 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 XLSB 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
| // 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 XLSM 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
| // 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 XLSX format. |