Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 08-21-2006, 01:00 PM ASP to word.
Skilled Talker

Posts: 95
Trades: 0
I've created a page that saves information form a database in to a word document using the following code

<%
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename=DataView_noPC.doc"
%>

And when the page has loaded in asks if i want to save a file called Dataview_noPC.doc.

Which is great as thats what its meant to do.

However some times, it asks if i want to save a file called word.asp which is the name of the asp page that holds the code to produce the word document.

That isn't so good.
What makes it sometime work and how can i stop it?

thanks for any adive you can give.
higginbt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-23-2006, 05:10 PM Re: ASP to word.
yoemanspiffy's Avatar
Experienced Talker

Posts: 42
Trades: 0
Some questions:

1. What browsers are you testing this on. Is it always the same one? Seems to me I had this problem some years ago when testing cross-platform. Just curious.

2. What is the result when you SAVE it when it asks you to save the .asp file? Is it saving th code for the file, or is it actually saving a word doc named incorrectly???

YM
__________________
My grandfather used to work for your grandfather. Of course the rates have gone up.


Please login or register to view this content. Registration is FREE
yoemanspiffy is offline
Reply With Quote
View Public Profile Visit yoemanspiffy's homepage!
 
Old 08-24-2006, 05:37 AM Re: ASP to word.
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Read this
Downloading any file using ASP, FSO and the ADODB Stream object | xefteri.com
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-25-2006, 11:14 AM Re: ASP to word.
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
No Progress?
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Old 08-25-2006, 06:38 PM Re: ASP to word.
yoemanspiffy's Avatar
Experienced Talker

Posts: 42
Trades: 0
good article saad. took a bit to get through it - My VB has gotten real rusty since my drinking of the C# kool-aid. YM
__________________
My grandfather used to work for your grandfather. Of course the rates have gone up.


Please login or register to view this content. Registration is FREE
yoemanspiffy is offline
Reply With Quote
View Public Profile Visit yoemanspiffy's homepage!
 
Old 08-28-2006, 04:53 AM Re: ASP to word.
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
Thanks
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Reply     « Reply to ASP to word.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37556 seconds with 12 queries