rbaldwin
Posts: 172
|
| Posted: 08/07/2008, 5:16 AM |
|
i have a need to send my output to a file rather than the browser. But i want exactly what would be output to the browser to end up in the file. I'm hoping for a simple solution like opening as excel by changing the Response.ContentType="application/vnd.ms-excel"
any suggestions. While this is a generic post, i'm particularily looking for a vb.net solution. But if you have a suggestion in another language i'll see if i can implement it in vb.net.
|
 |
 |
Markie
Posts: 251
|
| Posted: 08/07/2008, 7:07 AM |
|
Hi rbaldwin, maybe my solution for jpg can help (I think it also works for .xls files) but maybe I didn't understand your question well. Anyway:
http://forums.codecharge.com/posts.php?post_id=96068
_________________
The Netherlands, GMT+1
Tools: CCS 5.1, Windows 7, Navicat, Ultraedit
Local server: XAMPP with Apache, php and MySQL
Webserver: Windows 2008 IIS 7, php and MySQL |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 08/07/2008, 9:02 AM |
|
Hi.
Not being a vb.net person I am not to sure but I would expect it is similar to PHP. If not at least this might point you in the right direction
There is a string in PHP versions called $main_block that holds the exact data that will be output to the browser. If you can find the name of the string in vb.net, all you need to do is in the before output event write that string value to a file. you must be sure you decale the string as global.
for example in php the before output event would have code like this
global $main_block;
code to write $main_block to a file.... etc.
Hope that helps
have fun
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
|