Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can it be done?
Message
De
27/02/2002 11:47:07
 
 
À
27/02/2002 09:16:14
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00625696
Message ID:
00625815
Vues:
9
>I have a submit form that access an SQL server and display the result in a HTML table. This submit form will have a checkbox that asks if you want to e-mail the report.
>What I would like to do on the fly is to save the report to a file in html format and then email it.
>The emailing part I have already done, but I do not know how to save the report as an html format. ( once saved on the harddisk I can attach it to the emails )
>
>Thanks,
>Sergio

Just build the HTML in code and use the FileSystemObject to save it to a file.
Make sure you come up with a unique name, you don't want user B overwrite the user A file. Be sure you clean up those files because you may end up with lot's of them.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform