Does anyone know how I can open an attachment from a work item without having to download it first?
When I double click the attachment, the explorer is opened and the file is downloaded and only then I can open it.
You can't as far as I'm aware as the IDE will get the attachment from the TFS server using a web service and thus opens a browser and uses IE for this.
Please see this related item for more info: Open TFS Work Item Attachment in Image Viewer not Web Browser
Related
I want to upload lnk file (shortcut for large wmv file that exists in network directory) to test attachments. The problem is whenever I download this file from TFS it has extension of .download instead of .lnk and I have to change the extension manually in order to watch the video.
The issue is related to your browser. I've tested in IE and Chrome, IE works while Chrome doesn't. You could try with IE.
I am developing in ASP.net a web application which among other things should list documents available on a remote server.
this is for a very restricted number of users for which we can control the end PC.
What i need is the end user to click on a hyperlink and the file would open directly in words or excel for edition and save direct to remote server.
Files will also be available on a very common cloud file sharing system with the "virtual drive" letter (x:)
google doc does give you a unique url for each file but when one click on the link it opens online not in the local Microsoft Word. these is a plug in for office but document have to be open from word not from the webapp.
So the idea would be to create a windows explorer link to the file to open "file.lnk".
and set the browser to open lnk extensions with Explorer.
link
where test.lnk is an explorer link to the targeted file on the virtual drive.
this sound a bit dodgy, i agree, as it only works on windows.
this actual works ok as long as the htlm file is run on the local machine ( d:\app.htlm) but does not work when the html file is served on a remote web server ( mydomain.com/app.html)
Question:
why is the link on client side not served from the remote web server?
is there a simple implementation of editing MS office documents opened from the web browser without monster application like sharepoint or Alfresco?
I'm building a Reporting web application right now with MVC3 and I've come up to a couple problems.
My goal is to have it able to generate and view Crystal Reports, SSRS reports, and Excel documents.
Right now I'm working on the Excel segment and I'm running into more trouble than I thought I would. First off, when I link directly to the file, it either opens inside the browser or it downloads it from the server and if the user makes changes it doesn't actually save it to the true file on the server.
I've tried both linking to the file directly using Razor and a ViewModel with the path to the document as well as directing it to an action that returned a File.
I've also tried linking it to a shortcut to the actual file thinking that if I could open the shortcut it would open the file the way I wanted it to and unfortunately it didn't really open at all.
The users already have access to the files on the server through a network drive, so as of right now they can go into the server, open the excel document, edit and save it no problem. I want to duplicate this effect through a link. The program already has a file browser built, so I can browse between the files and make links to the reports.
Thanks in advance!
Since they are apparently on a network drive, you can just link to the files directly, relative to the user?
For example: a link to file://///SERVERNAME/folder/
I tested it between two computers on the network, and that seems to work. However, you still get a popup asking that you want to do with the file, open or save. (both in firefox and IE)
Note: Yes, that many slashes seem necessary, lol
I am working on an internal application. We have a website that displays all our SSRS reports for a group of work. I have been asked to see if I can link all the files (pdf, word, excel) for the group of work. These files are stored on a file server that users viewing the reports have access to. Each group has its own group of reports and shared files.
Is it possible to open the files (without downloading them) from a webpage? Meaning that they file is opened from the file server? I don't want people to download a copy of the file.
I am pretty sure this can work with IE because sharepoint does it. However, other browsers may have an issue.
EDIT: What I would like is to have a web page with links to the files. When they click on a link (say for a word doc), word will open the file that resides on the file server. Without out a local copy downloaded from the network share.
EDIT2: Please note, I know what I am asking is probably not possible in all browsers. I am more or less just making sure. It seems possible in IE using activeX, but out side of that browsers do a good job at keeping processes inside a sandbox.
3 options. Remember this is for an internal website.
link to the share using file://. This will have the side affect of downloading the file to be viewed. As long as user clicks open every time it should not be a big deal.
Use JavaScript and activeX to open word (excel, reader, ect) passing in the file path as a command line arguments. This works only in IE and in win7 (probably vista) user will get a pop up asking if it is ok for the activeX control to run.
Create a new protocol. openfile://. This would be set up to run an application that is installed on the client machine which would open the file. Since it is internal, the application could be installed on the machines without issues. This also requires a registry change.
I haven't picked one as this change is still being looked into but i figure I would update this in case someone runs into something similar.
I would like to add to a Delphi application a way for the user to call Windows Explorer (possibly using something like ShellExecute, perhaps).
However, and this is where I need some help, please, the application would need to capture ^H^H^H^H^H^H read the folder path that the user navigates to while within Windows Explorer.
Is it possible to obtain this information from Windows Explorer?
[edit: If not possible, or unrealistic, my fallback plan is to provide a separate "Browse for folder" button, to allow the user to select the folder first, then they can launch the Window explorer afterwards].
Thanks for any advice.
PhilW.
I dont know your exact needs, but most likely, this is not the way to go. For details, Microsoft developer Raymond Chen has written a blog post about this. What you should do, I think, is to embed an explorer browser control in a custom form in your own application.
For letting a user browse to and select a folder, I use TOrtusShellBrowseFolder.
Ortus Shell Components
Can't you just use the TOpenDialog? From Delphi Help:
Description
TOpenDialog displays a modal Windows dialog box for selecting and opening files. The dialog does not appear at runtime until it is activated by a call to the Execute method. When the user clicks Open, the dialog closes and the selected file or files are stored in the Files property.
if OpenDialog1.Execute then
filename := OpenDialog1.FileName;