Giter VIP home page Giter VIP logo

exceldynamicreaderwriter's Introduction

#Read and Write Excel File Dynamically ##About This project provide to you extracting data from excel documents as a list of object that dynamically.

##How to use If want get list of object that dynamically created by excel header names, just call below function and send your file address!

var stream = new MemoryStream(File.ReadAllBytes("YOUR_FILE_ADDRESS.xlsx"));

and also you can fill list of your object by sending list of object property name and excel related header in below function :

 ReadObjFromExel<T>(Stream stream, ExcelHeaderList pattern, string sheetName)
  • stream excel file
  • pattern list of related object property and excel columns
  • sheetname selected sheet of excel file for extracting data

pattern is a list of below class

public class ExcelHeader
{
    public string Key { get; set; }
    public string Value { get; set; }
    public ExcelHeaderType HeaderType { get; set; }
}

alse you can get a list of object as excel file (function return type is Stream ), jest send your list to below function

Wisgance.Office.Excel.Writer.Write().Do(yourListOfData, "SheetName", null);

First argement is your list, second one is sheetname that you want set in generated excel file and third one is culomn name. if sent null for third argument, function put property name as column name.


You can add this library by nuget in your project

exceldynamicreaderwriter's People

Contributors

behroozbahrameh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.