Go to DotNetFunda.com
 Online : 1138 |  Welcome, Guest!   Login
 
Home > Forums > ASP.NET > How to save an aspx page as doc file ...

ASP.NET Forum



How to save an aspx page as doc file

Author: Sbadrian | Posted on: 7/1/2009 | Category: ASP.NET | Views: 746 | Level: Starter | Status: [Member]

I have an aspx page with some information on it like it follows :

In the upper page i have two images
In the left part and in the middle i have one image and an asp:panel containing some text information static text and asp:label text stored from session.
Under the panel i have a print button that work ok and print the entire page.
I want near the print button to have a Save Page button to store and save the page on the disk with *.doc format or another format , i want to keep tracking this saved pages to see the information some other time.

And how to set a default folder to store the page as doc file inside the application? So when the save as prompt dialog appears with the default folder not to select the prom inside the PC location, if that is possible.

So i wait for a reply,
Thank you.


Reply

Found interesting? Add this to:

| More

 Responses

Vuyiswamb  
Posted on: 7/1/2009 9:40:21 AM
Level: NotApplicable | Status: [Member] [Administrator] | Reply

Good Evening

Am Sorry today i was very busy, a Bug after a Bug. I have nice steps that will help you in exactly what you want

http://2leggedspider.wordpress.com/2004/06/30/creating-a-word-document-using-aspnet-and-c/

in this Part

objWord.Selection.TypeText(".NET Rocks!!!");
objWord.Selection.TypeParagraph();
objWord.Selection.TypeText("Savage loves .NET");


where he Wrote ".NET Rocks, you can Add your html.

if you get a Problem , you might like to consider this

http://www.sautinsoft.com/products/html-to-rtf/index.php

Thanks again For Posting at Dotnetfunda

Am always here to Help

Vuyiswa Maseko


Sbadrian, please login to Mark As Answer, if this helps | Alert Moderator 

Latest Posts

More ... 

 Write New Post


Advertisement

About Us | The Team | Advertise | Contact Us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 9/7/2010 12:36:05 AM