473,507 Members | 5,060 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.CurrentDomain.BaseDirectory + @"PO_Attachment/"+lstattach.SelectedValue.ToString() ;

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 2912
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.CurrentDomain.BaseDirectory + @"PO_Attachment/"+lstattach.SelectedValue.ToString() ;

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="<%#Container.DataItem("Nameofthecolumn")%>"> </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
2941
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
12699
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...
4
2394
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
1918
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...
3
2342
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...
1
1906
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 +...
3
15966
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...
0
1076
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...
2
2011
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...
0
7223
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,...
0
7110
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...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7482
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...
0
5623
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,...
1
5041
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...
0
4702
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
411
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...

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.