I’m looking some example coding to be able to whenever a page is launched he automatically exports the current gridview data to an excel-file and then attach it to a mail and send the mail.
I have an export to excel function but this function asks the user to Save or View the file and I badly need to skip this step because I want my script to be running automatically.
If someone could help me with this this will be appreciated 🙂
Thanks
Kevin
try with this code