简体   繁体   中英

how to open a blank excel file with headers in asp.net using c#?

i have a requirement to open a blank excel file on a click of button in front of the user with predefined headers. and user will fill the data's and upload that excel file then i will read that and update my database. My 1st concern is how to open that blank sheet in front of the user..

anyone pls help i really need this

If your column headers are fixed then go with Excel Template. Create Excel template and open it with Process.Start("")

  1. Create an excel file with the template of your choice
  2. place the file inside a directory of your website.
  3. Create link on a page to the file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM