Skip Navigation LinksHome > Categories > Code from a Category

Export to Excel/Word with Cascading Style Sheets



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 2093
Add Date: 01/07/2012
In this article we will see how to export to Excel/Word with cascading style sheets.

Sometimes we needs to export data to file with applicable styles...
Here am trying to show an simple example...

.aspx page

Select File Format


Stylesheet used (CSSFile.css)



Code-Behind page


Button Click event used for exporting to required format



Hope, you all enjoyed..

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.