Guest User

Untitled

a guest
Nov 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // Path of input XLS and output XLSX files.
  2. intrusive_ptr<Aspose::Cells::System::String> inputXLSFile = new Aspose::Cells::System::String("D:/Download/SampleConvertMicrosoftExcelXLSToXLSX.xls");
  3. intrusive_ptr<Aspose::Cells::System::String> outputXLSXFile = new Aspose::Cells::System::String("D:/Download/OutputConvertMicrosoftExcelXLSToXLSX.xlsx");
  4.  
  5. // Specify load options Excel97To2003 i.e. XLS format.
  6. intrusive_ptr<Aspose::Cells::ILoadOptions> opts = Aspose::Cells::Factory::CreateILoadOptions(Aspose::Cells::LoadFormat_Excel97To2003);
  7.  
  8. // Load the input XLS file inside the Aspose.Cells workbook object.
  9. intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputXLSFile, opts);
  10.  
  11. // Save the workbook as output XLSX file.
  12. wb->Save(outputXLSXFile, Aspose::Cells::SaveFormat::SaveFormat_Xlsx);
Add Comment
Please, Sign In to add comment