Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am using html table , i applied css property on fields text-transform:capitalize. and when i export table to excel sheet. it shows me all letter small.
how to implmnt same property in excel.
i want to show same text in my excel sheet as it is showing on website.

suggest me what to do plz..
Posted
Comments
Leo Chapiro 15-Sep-15 3:47am    
What have you already achieved, where are you stuck? Show your source code please

1 solution

Hi,

If you want to export same styles as you have design for gridview then you need to make a code for the same while exporting into excel sheet.

I request you to please go through the below link; may be this will helpful to you how to redesign excel sheet same like gridview while exporting time.

http://www.aspsnippets.com/Articles/Export-GridView-to-Excel-in-ASPNet-with-Formatting-using-C-and-VBNet.aspx[^]

Hope this will helpful to you..
 
Share this answer
 
Comments
Member 11823146 15-Sep-15 4:19am    
i am not using gridview. i have an simple html table. onclick im calling function in c# after setting html in hidden field i export to excel my report. but i want to get title case text in my report. which is showing on web correctly.but after exporting to excel.it shows all small letters in excel. style is not working in excel.
Member 11823146 15-Sep-15 5:20am    
?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900