|
|
 |
| ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

November 14th, 2007, 05:36 AM
|
|
Authorized User
|
|
Join Date: Aug 2007
Location: new delhi, delhi, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How to save an web page content into RTF/text file
Hi All,
I have some web page(asp.net) data(coming from text boxes,dropdownlist etc) which is been stored as HTML output.Then in a button click the output has to be transform into RTF/text file format.So, how can i do this. Is there any ContentType for the text/RTF format?Like i have been successfully saving to Excel format.
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState = true;
Message.Text = "";
Response.Write(htmlOutput);
Response.End();
|

November 25th, 2007, 05:49 AM
|
|
Authorized User
|
|
Join Date: Aug 2007
Location: new delhi, delhi, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Wonder!!! Not a single response yet!!
|

November 26th, 2007, 10:34 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Perhaps no one has the answer. Have you found anything on google yet?
You are going to have to find a converter to get you an RTF stream. You can't just output plain text as RTF. The fact that you can output a table or other random data directly is simply the "feature" of Excel to be able to handle it.
-Peter
|

November 27th, 2007, 04:35 AM
|
|
Authorized User
|
|
Join Date: Aug 2007
Location: new delhi, delhi, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi
Planoie
Unfortunately stiil not finding the solution...Work has been in pending list!!!
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |