You can convert a CSV or an Excel file into PowerPoint presentation by using Essential Presentation and Essential XlsIO libraries. The conversion process includes the below steps,
The below assemblies are needed to compile the below code examples.
The Essential XlsIO library can be used to export data from Excel or CSV file to a System.Data.DataTable instance. The below code example demonstrates the same.
Since the content extended outside the slide will not be visible in Presentation Viewers, you have to restrict the number of data rows to be displayed in each slide.
The following code example demonstrates splitting a large DataTable instance into many small DataTable instances according to the specified size.
You can insert the data from DataTable as table in the slides of a PowerPoint presentation. The below code snippets demonstrates the same.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|5887||12/15/2015||12/19/2015||ASP.NET Web Forms||Presentation|