?
Solved

Need to open excel file through ASP Page(which is outside of App folder)

Posted on 2009-04-16
4
Medium Priority
?
499 Views
Last Modified: 2013-12-24
Actually i need to open a excel  file from an asp page with an provided link(say Bank copy).
If the files comes in application folder then it is easy to open, we could mention the file name it will open. But i actually need to open excel file which is out of Application (app) folder. kindly suggest help me out to give an idea..
i.e. my app folder is C:\chembu\bank\bank.xls -> i could open this thru asp page...say if i have file at C:\chembu\bank.xls. how to open it.........by giving the link in asp page ???
in asp page:-
<a href="javascript:bank();">Bank Copy</a>
function bank() {indow.open(bank.xls','mywindow','scrollbars=yes,resizable=yes');}
 
this i will get a link on asp page i could open, say if it is outside of App folder as i mention.. how can i ????

Open in new window

0
Comment
Question by:chembukar
  • 2
3 Comments
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 24164880
Hi chembukar,
Ok, you can try create a mapped network drive to connect this folder. But, you have to grant enough permission in order to let your application connect to this folder to open the preferred file as needed.
You can try this for further details:
http://www.particlesoftware.com/en/shares.html

or

You can just put your configure your excel folder as part of FTP of HTTP folder separately. Then, your application is able to communicate to this folder to access the files easily.

Hope it helps.
0
 

Author Comment

by:chembukar
ID: 24169006
hey x com,

                  Thanks for your respone. but i can't map it .. it is on internet..............FTP ok.. but our constraint is not put the file in app folder, becoz is visible all over the internet.............
0
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 2000 total points
ID: 24191628
Hi chembukar,
>>..FTP ok.. but our constraint is not put the file in app folder, becoz is visible all over the internet.............
- You can redirect user to centralized down page to handle all the download process here. This can avoid the exposure of physical directories to public via URL since you can control the download logic there before user start download the file.
Check this PAQ for further solution:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_24124230.html
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this post we will learn different types of Android Layout and some basics of an Android App.
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question