Hi, what you mean by "insert"? If you meant to create PowerPoint documents using C#, you can use Free Spire.Presentat ion, which is a C# class library for processing PPT and PPTX files in .NET.
The following is the code snippet of creating a simple PowerPoint using it.
Code:
using Spire.Presentation;
using System.Drawing;
namespace CreatePowerPointInCsharp
{
class Program
To read data from Excel worksheet, you'll need to use an Excel library, such as Free Spire.XLS for .NET.
The following code example shows you how to export data from excel to datatable using it. Then you could traverse the items in the datatable and insert them into your textbox.
Code:
//Create a new workbook
Workbook workbook = new Workbook();
//Load excel file
workbook.LoadFromFile(@”C:\Users\Administrator\Desktop\Data.xlsx”);
Leave a comment: