473,226 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

saving .Doc (office) file

F
Hi all

I have to allow users to download files after checking users validity and I
cannot give full URL of file to download e.g www.myserver.com/mydoc.doc

I have seen ASP code some where in MSDN where users has to enter URL like
www.myserver.com/mydoc.asp and this will download the doc file.

I searched but still no luck to find that code.

Will be very thankfull if some one advise or refer me.

Regards

Fayyaz
Jul 19 '05 #1
4 1190
"F@yy@Z" <fa**********@mvwebmaker.com> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Hi all

I have to allow users to download files after checking users validity and I cannot give full URL of file to download e.g www.myserver.com/mydoc.doc

I have seen ASP code some where in MSDN where users has to enter URL like
www.myserver.com/mydoc.asp and this will download the doc file.

I searched but still no luck to find that code.

Will be very thankfull if some one advise or refer me.


http://support.microsoft.com/?kbid=276488

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2
F
Thanks Tom for your reply.

When I tried this code, Its working fine on few machines but on one machine
its not allowing to save/open document but its writing the contents on page.
I think its some thing related to browser settining or MIME Settings.

How to slove this so it always prompt for save/open the contents in related
application.

Regards


"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:c1*********@kcweb01.netnews.att.com...
"F@yy@Z" <fa**********@mvwebmaker.com> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Hi all

I have to allow users to download files after checking users validity and
I
cannot give full URL of file to download e.g www.myserver.com/mydoc.doc

I have seen ASP code some where in MSDN where users has to enter URL
like www.myserver.com/mydoc.asp and this will download the doc file.

I searched but still no luck to find that code.

Will be very thankfull if some one advise or refer me.


http://support.microsoft.com/?kbid=276488

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
"F@yy@Z" <fa**********@mvwebmaker.com> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
Thanks Tom for your reply.

When I tried this code, Its working fine on few machines but on one machine its not allowing to save/open document but its writing the contents on page. I think its some thing related to browser settining or MIME Settings.

How to slove this so it always prompt for save/open the contents in related application.


Is MS Word installed on that machine?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #4
F
Yes MS WORD 2002 installed on the machine........

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:c1*********@kcweb01.netnews.att.com...
"F@yy@Z" <fa**********@mvwebmaker.com> wrote in message
news:u9**************@TK2MSFTNGP09.phx.gbl...
Thanks Tom for your reply.

When I tried this code, Its working fine on few machines but on one machine
its not allowing to save/open document but its writing the contents on

page.
I think its some thing related to browser settining or MIME Settings.

How to slove this so it always prompt for save/open the contents in

related
application.


Is MS Word installed on that machine?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: ken | last post by:
I have a XML file as below ---------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" standalone="yes"?> ...
3
by: James | last post by:
Situation: I have a page, built using document.write(). When I hit 'save as', IE goes and saves the contents of 'about:blank' to that file, rather than saving the HTML it's displaying in the...
0
by: Pohihihi | last post by:
Hello NG, Never used interOps for programming so for many this might be a very small problem. Basically I have 2 questions -- 1- Code given below creates WinWord.exe instance and even after...
2
by: Dennis | last post by:
Hi, I am hoping I can get some help with a small problem I have run into using C#. U have an XML file that I load into a Dataset and then display this in a Datagrid. No problems doing this at all....
1
by: Mladen Jablanovic via .NET 247 | last post by:
I am creating dynamically some Office documents in my ASP.NET application. When I want to send the resulting document to the client, I am currently saving it to the local disk and then redirecting...
6
by: Greg Collins [MVP] | last post by:
For background, please refer to my original thread: http://groups.google.com/groups?selm=efe5w7tYEHA.3112%40tk2msftngp13.phx.gbl I've thought of a potential way around the issue, but I'm new to...
7
by: Tosch | last post by:
Has anyone ever tried to save a Excel document and a Word document in the same physical file? I have an application where there is always 1 Excel and 2 Word documents and 1 or 2 other files that...
2
by: Sai | last post by:
Hi, I have written a small tool for our internal purpose in VB.net. This tool reads data from logs and saves it in an excel file. This tool is working fine with MS Office 2000 but raising the...
0
by: Speilman_54 | last post by:
Hi, I'm converting an excel Macro into visual basic 2005 express, as I don't have a copy of VB 6 and trying to make and executable from it, I know this version doesn't have the save file as .exe,...
1
by: leninv | last post by:
Hi, I have a asp page where I have a Export to Excel button. When I click the button, I get the option to open or save or cancel. When I click on save option I get the save dialogue box and save it....
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.