简体   繁体   中英

Write datatable to excel template and adding backcolor to a row in excel

In the ASP.Net application I am working on, there is a requirement to send out excel to client attached to a mail and I have create excel in server in order to send it out as an attachment and office is not installed in server so I cannot use Microsoft.office.interop.excel ,the excel has image and some text and columns are fixed so I thought of making it as a template and writing Data table to it, and I want to give some back color to a row and wrap text for columns.

Can anyone show me how to accomplish this?

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