Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 14th, 2007, 05:36 AM
Authorized User
Join Date: Aug 2007
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 = "";

Old November 25th, 2007, 05:49 AM
Authorized User
Join Date: Aug 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

Wonder!!! Not a single response yet!!

Old November 26th, 2007, 10:34 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 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.

Old November 27th, 2007, 04:35 AM
Authorized User
Join Date: Aug 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts


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

Old November 27th, 2007, 04:52 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

No solution? Tried this Google search?


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 Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

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 08: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 02:56 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.