473,569 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How To Open WORD and Excel file on client's computer located at Server in ASP.NET

2 New Member
My WORD & EXCEL FILES are located on Server.

I want to open them on clients computer

i find out path of file in following manner

string filepath = AppDomain.Curre ntDomain.BaseDi rectory + @"PO_Attachm ent/"+lstattach.Sel ectedValue.ToSt ring() ;

so plz tell me how to open it on clients computer

if i work on server then window.open() works
but on client it dosen't


so plz help me
Oct 6 '06 #1
1 2918
zykes
14 New Member
My WORD & EXCEL FILES are located on Server.

I want to open them on clients computer

i find out path of file in following manner

string filepath = AppDomain.Curre ntDomain.BaseDi rectory + @"PO_Attachm ent/"+lstattach.Sel ectedValue.ToSt ring() ;

so plz tell me how to open it on clients computer

if i work on server then window.open() works
but on client it dosen't


so plz help me

create a datalist/table to show the documents from the server then use <a href="<%#Contai ner.DataItem("N ameofthecolumn" )%>"></a> to provide a link on the document. If you click on the link, automatically, the option "Save", "Open", "Cancel" window will open. then all u have to do is choose.

ian
Oct 6 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2945
by: wahodi | last post by:
Dear all I want to provide a function using asp for the users to search for their excel files in their PCs in IE and then upload to my database. Is it possible Best regards wahodi
2
12703
by: Sreedhar Vankayala | last post by:
Hi, I joined a project where we need to import data from a excel file into sql server via the asp.net. After doing a long research found that #1. Upload Excel file to the server #2. Load or keep the Excel file into the memory #3. Query the excel file and convert into insert queries and execute them via sql server
4
2400
by: Simon Cheng | last post by:
Hi, How do I open a Word or Excel document inside an event handler (e.g., Page_Load())? Thanks, Simon
4
1922
by: Thierry | last post by:
Hello. Is it possible to generate word/excel files in PHP ? with a template file ?... It is possible in Java so I guess it is possible in PHP to. I allready know how to do PDF... Can anyone help me ?
3
2344
by: herman404 | last post by:
Hi everyone, I have data coming to me in the form of Word and Excel files, and I need to place this data into a SQL Server database. The Word file will be coming in text which is similiar to an Excel sheet, but instead of being comma delimited, it will be delimited by spaces. Regarding the Word document, I can set rules for the field...
1
1909
by: deshpandevd | last post by:
My WORD & EXCEL FILES are located on Server. I want to open them on clients computer i find out path of file in following manner string filepath = AppDomain.CurrentDomain.BaseDirectory + @"PO_Attachment/"+lstattach.SelectedValue.ToString() ; so plz tell me how to open it on clients computer
3
15976
by: toffee | last post by:
Hi all, I got a pre-formatted spreadsheet. would it be possible using js to copy the data from a table on the current webpage, open the spreadsheet and paste the content ? if so, anyone got any links or pointers? i've already tried google - but all i get is ActiveX methods which work in a very few cases.
0
1080
by: radraq | last post by:
Hello, I have just completed a survey in excel which I've uploaded to my website. The propblem is I would like the excel file to open directly online without asking for paswords and save the information onto my server, Instead of the user downloading the file onto their computer then resending me the file. Is there any VB script I can...
2
2015
by: radraq | last post by:
Hello, I have just completed a survey in excel which I've uploaded to my website. The propblem is I would like the excel file to open directly online without asking for paswords and save the information onto my server, Instead of the user downloading the file onto their computer then resending me the file. Is there any VB script I can...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7930
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. ...
1
7681
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...
0
7983
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...
0
6290
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...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2118
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
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.