Convert XLS to POWERPOINT via C++

Export Excel® XLS to POWERPOINT within full-functional C++ applications

XLS to POWERPOINT Conversion on C++

  1. Open XLS file using IWorkbook member function of Factory class reference
  2. Convert XLS to PDF and set SaveFormat to Pdf
  3. Load the converted PDF file using Document class reference
  4. Save the document to PPTX format using Save member function and set Pptx as SaveFormat

Get Started with C++ File Format APIs

Install from command line as nuget install Aspose.Total.Cpp or via Package Manager Console of Visual Studio with Install-Package Aspose.Total.Cpp.

Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .

C++ Code for XLS to POWERPOINT Conversion

// load the XLS file using Factory::CreateIWorkbook
intrusive_ptr<Aspose::Cells::IWorkbook> wkb = Factory::CreateIWorkbook(u"sourceFile.xls");
// save XLS as PDF
wkb->Save(u"pdfOutput.pdf", SaveFormat_Pdf);
// load the PDF file using Document class reference
auto doc = MakeObject<Document>(u"pdfOutput.pdf");
// save document in PPTX format
doc->Save(u"convertedFile.pptx", SaveFormat::Pptx);

XLS What is XLS File Format?

Files with XLS extension represent Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers. File saved by Excel is known as Workbook where each workbook can have one or more worksheets. Data is stored and displayed to users in table format in worksheet and can span numeric values, text data, formulas, external data connections, images, and charts. Applications like Microsoft Excel lets you export workbook data to several different formats including PDF, CSV, XLSX, TXT, HTML, XPS, and several others. The XLS file format was replaced with a more open and structured format, XLSX, with the release of Microsoft Excel 2007. The latest versions still provide support for creating and reading XLS files, though XLSX is the first choice of use now.

Read More

PPTX What is PPTX File Format?

Files with PPTX extension are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format. A presentation file is a collection of slides where each slide can comprise of text, images, formatting, animations, and other media. These slides are presented to audience in the form of slideshows with custom presentation settings.

Read More

Other Conversion Options

XLS TO DOC (Microsoft Word Binary Format)
XLS TO DOCX (Office 2007+ Word Document)
XLS TO PPTX (Open XML presentation Format)