File in Internet Explorer 11 opened from source URL instead of tempory folder - asp.net-mvc-4

I would like you to help me to understand this situation. From a web application (ASP.NET MVC), I generate files in docx and xlsx. In Internet Explorer (V11) it show a box asking if user want to "Open", "Save" or "Save as" this file. When user select "Open", it open the file in Microsoft Word (or Excel), but the file is not in Internet Explorer's temporary file folder. File point toward the web application URL. This cause an issue when user "Enable Editing" on this opened docx or xlsx file. The "Enable Editing" action change the content of the file for the login page of the web application, which is wrong.
The issue doesn't happend in Chrome or Firefox, nor if user "Save" or "Save as" files. Too, it doesn't happend on all PCs.
Until now I did: compare IE advance setting with a working PC, compare IE security setting with a working PC, reset IE settings and opened a docx file from GMail (the issue didn't happen)
I use Microsoft office 2013
Thanks for your advices

I found the answer.
In my code I didn't have the Response header "content-disposition" when generating files.

Related

Data Studio Report not Downloading Properly

Until today I have been able to download data studio reports as pdfs and, with the exception of some content errors, it has always worked as expected. Now, rather than downloading as a pdf, the report opens as a pdf looking file with a blob:https:/ /datastudio.google.com/4138d etc. URL which according to Chrome is an insecure connection. Trying to download this file results in a "Network Error"
page that I get when selecting download as pdf
I have tried checking for malware on Chrome and cannot see anything wrong. I have also restarted my PC and refreshed data studio.
Any help or suggestions would be greatly appreciated!
I agree with #wilburforcethebrave - all dashboards were downloading without an issue until yesterday and now receiving intermittent errors such as "blob:https:/ /datastudio.google.com/4138d"
Printing the dashboard as a PDF is helpful if the report is one page, but does not work for multiple pages.
I think I found a fix though so you can download Data Studio reports in Chrome.
Click the 3 dots next to your photo in chrome (right under the 'X' button on windows)
Go to 'Settings'
Select 'Privacy and Security' from the left side menu
Select 'Site Settings' from the presented menu
Under the 'Content' section, select 'Additional content settings'
Click 'PDF documents'
Click the 'Download PDFs' button
Changing this setting will download PDFs directly to your downloads folder without opening a separate PDF window in Chrome. To make sure your downloads folder is the default folder click 'Advanced' on the left side menu then click 'Downloads'. You can change your download location from here or turn on the option to have Chrome ask where to save with each download request.
Also, downloading the reports with another browser will work too. I did not have any issues downloading reports with Firefox.
I have been having the same issue with this today, and have found a work around. Instead of downloading it in the new tab that opens, click the print button instead. From the print menu, change the printer to "Save as PDF", and it should be able to save as normal. Not sure why we had this issue but this seemed to allow us to download it as a PDF.
I do not have any problem when I export multiple pages dashboard and print as pdf. I suggest you may want to check your pdf print driver within the browser itself.

TFS2015 Document library- open file instead of download

when i am trying to view files from my TFS document library it's download the file instead of opening it automatic with excel OR word that are already installed on my pc, does someone know how to fix it?
i am using office365 and TFS2015 as you can see at the screenshot that attached this is how it's look like in PC that working fine.
This kind of issue may related to your IE security setting, try to add the related sharepoint site in trust site and try again:
Close your browser (if you don't and you have your SharePoint site up you'll get a bunch of script errors because of the change to access
levels).
Go to your Control Panel
Open Internet Properties
Select the Security tab.
Select Trusted Sites
Click Sites, and add the URL for your SharePoint site.
More details please refer this similar issue: "Some files can harm your computer" dialog when I open a file from the document library
If the warning dialog is disappear, but when you open file still download. Then that behavior maybe defined by your browser. Try some other browser such as IE/Chrome/FireFox. Double check the integration/link of your browser and Word,Excel.

Display directory files in Internet Explorer window

Similar to an FTP file listing in a browser window, is there a way in VB.NET to open a network directory in Internet Explorer, rather than File Explorer?
I will have a GPO that should prevent basic users from accessing File Explorer directly but the vb app they will use needs to return a directory listing, and I'd like to use Internet Explorer for that.

WebDav Pdf Saving error

I have set up a webdav folder that I can access thorugh chrome and edit files and save them back to the server, for example, I can open a word doc, edit it and save it back.
When I come to open a pdf, it wont save back to the server and downloads a copy of the pdf instead of the original.
Is there a way of enabling this to edit a pdf?
My end goal is to be able to open a pdf, add comments/highlights and save it back to the server, through my browser.
Thank you
Edit:
I have set this up through Apache 2.4, no plug ins through chrome, I have mapped a network drive to the server folder where I can open and edit files. Except PDFs, I would like to add comments to a off but when I open one the option is greyed out and when I try and save it after opening it tries to save to my desktop.
I'm not sure i've got your use case right, but if i've understood you correctly you have a link in a web page to a PDF which you're viewing in chrome. You click on that link and the PDF downloads to a temp file from which it is opened. If you edit and save those changes are simply saved to the temp file on your local PC. Is that correct?
If so, then this is simply normal behaviour for links in web pages. There is absolutely nothing in the HTML standard which suggests links should be opened by an editor with knowledge of the source location.
What you really want is for the link to launch an editor program which retrieves the remote document in edit mode (probably locking the remote resource) and then have edits saved back to the server. For this to happen there generally needs to be some special interaction in the browser. In Internet Explorer this is provided by the sharepoint dll and special script code. I think there's a plugin for Chrome which does the same thing, although differently.
I havent used the Chrome plugin, but i think this might help - https://code.google.com/p/npapi-msdocs/

IE6 opening XLSX file as an XLS file

My application generates XLSX files based on a users requirements.
After the XLSX file is generated the user is redirected to where the file is saved using Response.Redirect...
Response.Redirect("filename.xlsx")
When the user then opens the file... they recieve this message.
The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
As a temporary fix I've instructed my users to press "Yes" when they receive this message and the file opens perfectly fine.
Does anyone have any ideas why IE6 is trying to open an XLSX file as an XLS?
Note: I have a similar application that generates PPTX files in the same manner - and these open without a problem.
I've found that it is an issue with older versions of windows server.
Both the xlsx MIME type needs to be added and there are also a couple driver updates that need to be installed (I don't know specifically which ones. Our IT department is taking care of it)
To add the MIME type: Go to IIS Manager and add the .xlsx MIME type. (Documentation).
The MIME type that needs to be added is:
File Extension: .xlsx
MIME Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Further information on this can be found here: http://technet.microsoft.com/en-us/library/ee309278(office.12).aspx
I think, you cannot solve that problem by hosting or etc. it depend on your computer...
Here is the fix from Microsoft website ;
To configure Internet Explorer to open Office files in the appropriate Office program by using the Folder Options tool:
Open My Computer.
On the Tools menu (or the View menu), click Folder Options (or click Options).
Click the File Types tab.
In the Registered file types list, click the specific Office document type (for example, Microsoft Excel Worksheet), and then click Advanced (or click Edit).
In the Edit File Type dialog box, click to clear the Browse in same window check box (or click to clear the Open Web documents in place check box).
Click OK.
Here is the link http://support.microsoft.com/?scid=kb%3Ben-us%3B162059&x=13&y=13