Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- public class Program
- {
- public static void Main()
- {
- var customer_list = new ExcelDocumentReader().Load<CustomerList>(file).Customers;
- }
- [ExcelSheet("Customers")]
- public class CustomerList : ExcelDocument
- {
- [ExcelTable("CustomerList", true)]
- public List<Customer> Customers { get; set; }
- }
- public class Customer
- {
- [ExcelColumn("A")]
- public string Name { get; set; }
- [ExcelColumn("B")]
- public string ContactName { get; set; }
- [ExcelColumn("C")]
- public string Address { get; set; }
- [ExcelColumn("D")]
- public string Phone { get; set; }
- [ExcelColumn("E")]
- public string Fax { get; set; }
- [ExcelColumn("F")]
- public string Email { get; set; }
- [ExcelColumn("G")]
- public string AccountType { get; set; }
- [ExcelColumn("H")]
- public string Delivery { get; set; }
- [ExcelColumn("I")]
- public string FinishedTopDiscount { get; set; }
- [ExcelColumn("J")]
- public string GenerateBlank { get; set; }
- [ExcelColumn("K")]
- public string DeliveryNotes { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement