473,659 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1204
"F@yy@Z" <fa**********@m vwebmaker.com> wrote in message
news:es******** ******@TK2MSFTN GP10.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.netne ws.att.com...
"F@yy@Z" <fa**********@m vwebmaker.com> wrote in message
news:es******** ******@TK2MSFTN GP10.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**********@m vwebmaker.com> wrote in message
news:u9******** ******@TK2MSFTN GP09.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.netne ws.att.com...
"F@yy@Z" <fa**********@m vwebmaker.com> wrote in message
news:u9******** ******@TK2MSFTN GP09.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
1522
by: ken | last post by:
I have a XML file as below ---------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" standalone="yes"?> <BorrowerContainer> <ID_BorrowerID value = "BO_1"/> <BOCO_REOPropertiesNo value = "1"/> <BorrowerName> <BN_LastName value = "TESTCO"/> <BN_FirstName value = "NHI"/>
3
1612
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 window. Does anyone know how to get around this?
0
1040
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 application terminate MS-Word is left open. If I use task manager to see how many instances are created then one instance is created and terminates but other stays. In other words, 2 instances are created and one is left active. I know code is...
2
5337
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. I then use a Dataview to filter this view using a keyword and I have no problems with this either. What I would like to do is to save this Dataview to a new Dataset so I can save the reslts to a new file but here is where I am having the...
1
1280
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 user's browser to it. Is there any way to skip this saving phase, i.e. to send the document directly from memory? ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>BN9dKSONYEqICf01CWVYzA==</Id>
6
1772
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 ASP.NET and C# and need the expertese of individuals with more experience in these languages than I have. I may be completely off target as I thought this up very early in the morning. Here's the process as I see it: 1. InfoPath saves out the...
7
4872
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 belong together. I want to save them in 1 physical file so the users can't mix them up. Any ideas? Tosch
2
36968
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 following exception, when i run the tool in a machine which contains MS Office 2003. Exception raised: "Exception from HRESULT: 0x800A03EC" Note: Added "Microsoft Excel 11.0 Object Library" in the project reference.
0
2012
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, but I have a 3rd party software that will convert vb projects into .exe files. My issue is in the the saving of the excel file. The macro bassicly imports a tab delimeted file and manipulates the file and then saves it, as a template to work...
1
1572
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. I don't have any problem if I save it with .xls extension, but the problem comes when I save it with .TXT extension. When I open the file saved with .txt extension I am able to see some html code as seen below only part of data is pasted...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.