Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 software programmers and website developers 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 developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 14th, 2007, 04:36 AM
Authorized User
 
Join Date: Aug 2007
Location: new delhi, delhi, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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();


Reply With Quote
  #2 (permalink)  
Old November 25th, 2007, 04:49 AM
Authorized User
 
Join Date: Aug 2007
Location: new delhi, delhi, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wonder!!! Not a single response yet!!

Reply With Quote
  #3 (permalink)  
Old November 26th, 2007, 09:34 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
Reply With Quote
  #4 (permalink)  
Old November 27th, 2007, 03:35 AM
Authorized User
 
Join Date: Aug 2007
Location: new delhi, delhi, India.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
  Planoie

 Unfortunately stiil not finding the solution...Work has been in pending list!!!

Reply With Quote
  #5 (permalink)  
Old November 27th, 2007, 03:52 AM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,414 Times in 1,394 Posts
Default

No solution? Tried this Google search?

http://www.google.com/search?hl=en&q...rt+html+to+rtf

You then end up with products like this one http://www.activeup.com/products/components/activertf/ (never used it myself, nor do I know it) and this one http://htmltortf.com/index.php

Imar




---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in getting the page break in RTF file CsharpHelp Other Programming Languages 1 October 25th, 2009 05:57 AM
Getting a Text file from a HTML File or web page rajesh.java Java Basics 1 January 20th, 2007 07:36 AM
how i can save my file content into a table chandanbhakuni Classic ASP Professional 0 July 14th, 2006 07:23 AM
save a PDF file as text file through VB. NET kvenkatu VB.NET 0 April 6th, 2006 12:15 PM
Page breaks in rtf File bvprasad XSLT 0 January 19th, 2004 01:56 AM



All times are GMT -4. The time now is 11:27 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.