Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
SamC
White Water Yakist
3467 Posts |
Posted - 2003-11-18 : 09:42:50
|
I'm using an ASP datagrid to write reports. The output is written to HTML in ASP using Response.Write statements.Now the customer wants to e-mail these reports ala HTML. I don't know of any way to redirect the "Response.Write" HTML output to the string required by the HTML email object.Am I going to need to find a new ASP datagrid object that can redirect output to email?Suggestions?Sam |
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2003-11-18 : 10:17:18
|
Sam,Did you check out the XMLHTTP solution I posted in your Off Topic post.I believe the GET example will work for you. |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2003-11-18 : 10:39:24
|
Hi ehorn,Your post looked right on. Yours was the only ASP solution I had seen. Thanks !Sam |
|
|
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts |
Posted - 2003-11-18 : 17:36:19
|
Can you build a wrapper around respone.write and have the report generator call the wrapper instead of the response object ? If you do that it would be easy to redirect the output to a string builder class.Damian |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2003-11-18 : 18:39:54
|
Not sure what you have in mind, but I'm thinking it looks likeIf boolBuildString Then string = string & "whatever goes here"Else Response.Write "whatever goes here"End If I'm thinking it's a way to go.Sam |
|
|
|
|
|