User Profile

Collapse

Profile Sidebar

Collapse
Cezar
Cezar
Last Activity: Feb 9 '22, 06:38 AM
Joined: Jan 12 '22
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Cezar
    replied to How to insert PowerPoint in c sharp
    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
    ...
    See more | Go to post

    Leave a comment:


  • Cezar
    replied to Reading Data From Excelsheet in DataGridView
    I used Spire.XLS for .NET to expert data from Excel sheet to DataGridView, and it worked like a charm.

    Compared with Microsoft.Offic e.Interop.Excel , the biggest advantage of Spire.XLS is that there is no need to installed MS Office on computers.

    Code:
    //Create a new workbook
    Workbook workbook = new Workbook();       
    //Load an excel file
    workbook.LoadFromFile(@”C:\Users\Administrator\Desktop\data.xlsx”);
    ...
    See more | Go to post

    Leave a comment:


  • 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”);
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...