Outlook web addin save the mail and lauch a program - outlook

I had a VSTO in Outlook which saves the the selected email into a Temp folder and launchs then an exe to handle the mail.
Now, we want to create an addin in Outlook web app. Is there a way to save the selected email and reuse out exe ? how to launch an exe loccaly from web addin ?
Thanks

Web addins have no access to the local file system and cannot launch executables.
The best you can do is let the user download the file. If your app is registered to handle file extension of the file you provide, the user can then launch the app.

That is not possible. For security reasons Office web add-ins don't have access to the local file system, but you may consider using all standard mechanisms for web applications like web storage and etc. So, it is not possible to run any executable files on the local system for security reasons.
Office web add-ins are run under the context of currently selected item in Outlook. The Office JavaScript API doesn't provide any method for saving items on the disk (again, disk IO operations for accessing the local filesystem is not available for security reasons).
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.

Related

Command line or other tools to collect outlook add-in's installed?

Is there any tool or utility to see the list of admin-managed Outlook add-ins installed on a user machine?
This will be helpful to gather diagnostics using script rather than asking users to take screenshots and upload manually?
Can we get manifest info used by the add-in using any utility tool or from UI?
There is no such tools. You can find the list of web add-ins in the hidden items of your Inbox folder. If you try to use MFCMAPI and navigate to the associated content table of your Inbox where you can find the list of hidden messages:
Every message with a message class set to the IPM.Configuration.ClientExtension.* represents a web add-in installed for your mailbox.
Admins can run this powershell commandlet to get add-ins for individual users:
Get-App -Mailbox <userEmailAddress>

Opening files in Harmon.ie (Outlook) asks for credentials

Goodday all,
We have a few customers who are using Harmon.ie in Outlook and it is connected to Sharepoint.
When they want to open a document (any extension) a popup shows up to fill in username, when filled in username the next screen asks for their password.
This happens everytime they are trying to open a document.
I checked the settings in Harmon.ie, I tried the login via webbrowser and filled in manually the credentials of the user, with both settings the same thing is happening.
Anyone got a clue how to solve this?
Thanks
harmon.ie does not share credentials with MS Office applications when opening documents. The office applications authenticate against SharePoint separately. When user clicks on a document - harmon.ie determines appropriate application based on the document extension and then launches the associated desktop application by passing it the URL to the document. Running the application from command line and passing it the direct URL of the SharePoint document closely approximates the behavior of opening the document via harmon.ie.
Please check to see if running MS Office application, such as word or excel, from command line and providing the URL to the SharePoint document would require user to enter their password (sample command format is below - in this environment harmon.ie is installed in Outlook 2010 and opens a Word document from SharePoint URL from our test site)
"C:\Program Files\Microsoft Office\Office14\WINWORD.EXE" "http://ravenwood-corp.com/sandbox/Shared Documents/ER.doc
Check under Control Panel -> User Accounts and Family Safety -> Credential Manager, select Windows Credentials tab and delete any entries that have the same URL as the SharePoint site you are seeing the issue opening documents from.
You may also double check whether the SharePoint URL is added to Trusted Sites or Local Intranet in the Internet Explorer under Tools -> Options -> Security - if not, you can try adding the site URL to Local Intranet or Trusted Sites zones.

How to done file manipulations in WP7

I am developing a windows phone application. In this app I am downloading some files and stored them in isolated storage. I need to open these files. For that I tried different methods, but I can't.
The same question is asked here.
The answer says I cannot open a file from isolatedstorage. But I am trying the same in the Mail Client in my Windows Phone (hotmail client). I sent some .doc, .ppt, .pdf, .xls to my email and tried to open these attached files in my phone through mail client. I can open the files in my phone. I need to do the same in my application also. How can I do this in my app?
You will not be able to open these types of files from the isolated storage. There is no way for third-party applications to launch the external application required for viewing these file types. The Mail Client is a native application that runs outside the protected sandbox which third party apps are subjected to.
One solution you can utilize though is to upload the file to an external server and launch it using the WebBrowserTask class. I am not going to give the code required to upload the file, as that will depend on your environment, but once uploaded, here is how you can launch it:
WebBrowserTask webBrowserTask = new WebBrowserTask();
webBrowserTask.URL = "http://www.foo.com/bar.pdf";
webBrowserTask.Show();
I should mention that this will only work for an external file. It will not work if you try to reference a file in isolated storage. You will need to upload the file somewhere.

Associate file extension with app in wp7.1

Is it possible to associate a particular file extension with my app in wp7.1?
I would like to allow the users of my app to email files of a particular type to each other and then when they click on the attached email file it would launch my app so it could process the file and add it to isolated storage.
No, it's not. You need a "special permission" from Microsoft to do it, that's how Adobe was allowed to do it.
But there's no part of the official released SDK that allows for it.

Opening a file from TFS using the full TFS Path, from a web site

So I have a website running that displays full path of a TFS File on the page somewhere, I want the user to be able to click on it, which should then open up that file from TFS inside their Visual Studio.
The command to do this inside Visual Studio is "File.TfsOpenFromSourceControl" (DTE command) - it's basically the user manually going to that file using the Source control explorer and double clicking to open it up.
I am wanting to simulate that action from my web app inside the browser.
Update: The Web app is a pure ASPNet MVC app with Jquery available to it. I am already showing the file's content to the user in the web app. But I want the user to open the same file in Visual studio, by clicking on the file path in the web app. The question is more of Browser to VS integration and how to execute the DTE command in question, from within the web app context of the browser.
Any clues would be helpful
I don't know the answer to Pavel's question, so I'll sketch an outline of both solutions.
If you want to display the file inside the browser, call the Item.DownloadFile() API. NB: in 2008 SP1 there is another overload of this method that allows streaming into a memory buffer instead of writing directly to the filesystem. If you don't already work with Item objects directly, you can retrieve them via the GetItem() / GetItems() APIs.
If you want to make the file open in VS, there are a couple approaches. Perhaps your web app already includes the concept of local workspace(s) for the user, similar to Source Control Explorer. If so, you'd simply call Workspace.GetLocalItemForServerItem() to find the local path of the item, then ShellExecute it. (Or maybe pass it as a command line parameter to devenv.exe, if it's not natively associated with VS.) If not, you can either create a temporary workspace on behalf of the user, or use the same DownloadFile() API shown before; stream the contents to the client over a web service, save to disk, then launch VS as before.
Naturally, the more involved scenarios under option #2 will require deeper OS integration than the DOM / Javascript can provide. Would help to know if this web app is already built on ActiveX, Flash, Silverlight, XBAP, or similar technology...

Resources