I would like to programmatically open an app in windows phone.
i found the following code to open an excel file:
var wbt = new WebBrowserTask();
wbt.URL = "http://example.com/file.xlsx";
wbt.Show();
could I use this code to open an .exe file?
Your code does not programmatically open an app. Instead, it opens a web browser, navigates it to the xlsx file URI. Then, Internet Explorer recognizes file type from either extension or MIME type, and launches Excel.
With exe file, you’re only gonna get a message saying something like “Unsupported file format”.
Related
I am using powerbuilder 17 and having microsoft web browser control. I have placed that control on one window and trying to open pdf file which is present in my local path.
I want pdf file to be opened inside web browser control. But it is opening in chrome instead of browser. I have tried navigate as well as loadfile function.
When tried to open http link then it is working fine. It is opening in powerbuilder control itself.
Please assist if I am missing anything.
I want to download a file from the website:
http://www.trademap.org/Country_SelProduct_TS.aspx?nvpm=1|||||TOTAL|||2|1|1|1|2|1|2|1|1
no filename and extension in the URL. on webpage, excel icon (up-left) has to be on-clicked and then the browser savedfiledialog opens. how to automate this and save the file in pc without browser, from vb.net?
can it be done by webclient.downloadfile?
thanks
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.
I am developing a media player based on the WMP Engine.
When I am setting it as a default program to open a video or audio file, then double-click at such a file, the program will open but it will not have the file loaded.
How can I get the file URL that the user double-clicked and caused my program to open?
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