1
Answer

save a excel shett

sayed shadab

sayed shadab

14y
10.9k
1
hello
I want to save an excel shet using save() method in C#.
Actually when i execute an program it generate a excel sheet and fills data from data base and then it automatically save the excel shett to a given file name and folder.can any body tell me how to save the excel sheet.
waiting your response
thanks

Please Reply................
Answers (1)
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
Thanks for that - works well.
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
Yes, you have. But the Page property of user controls is declared as System.Web.UI.Page (of course, how could it know the name of your base class). All you need to do is cast it to appropriatetype. Just use following code on your control RVPage myPage = Page as RVPage; if (myPage != null) { // myPage.Entity is available here }