How can I invoke Outlook window on server-side through a click button with an attached file located on the root web folder?
If you're trying to allow the user to upload an email and then send it, you'd be better off following this tutorial:
https://web.archive.org/web/20211020150716/https://www.4guysfromrolla.com/articles/080206-1.aspx
Automating a client app server-side is a bad idea. What if Outlook prompts the user to do something? Who will be there to answer the prompts?
Also, any version of Outlook at or higher than the 2003 version WILL prompt if you try to automate sending emails, so this isn't even feasible unless you have an old version of Outlook on the server.
Related
I'm trying to integrate our (C#) WPF application with 2007 Outlook Interop. I've got it working as it should, but I'm getting the security warning. I know that using Redemption is an option to "get around the bush," but I don't want to just get around the problem, I'd like to somehow allow access via credentials or something. This isn't an add-in. I'm simply using the interop to interact with the users client session of Outlook.
Is there anything that I can do to create some credentials that I can pass through from my app to prevent the security warning from showing up when my application is accessing the Outlook session?
Thanks!
The only way to disable the security prompt is to have an up-to-date AV app installed. If you cannot control the environment, then it is Extended MAPI (C++ or Delphi) or Redemption (any language).
You can also move your Outlook related code to a COM addin (addins are trusted).
I'm currently working on a web application using C#. In the original application, one of the functionalities is to open Outlook and create a draft with an attached file to it -it was a desktop app-. Now, they want the same function in the new web application.
So that's my question. I've been reading and as far as I've seen it's not possible to do it from the server, but maybe I missed something?
And, if it's not possible, what would be the best alternative for this?
Thank you very much!
This is actually possible, as long as you are using Exchange, and own the user's mailbox/can pass their credentials.
The EWS Managed API will let you create an email message and save a draft with attachments, so that shouldn't be a problem. See EWS Managed API - Save Draft with inline Images.
If you're not using exchange/can't get that level of permission, you might have to come up with a different solution. Perhaps saving the draft as a .eml file? How to save MailMessage object to disk as *.eml or *.msg file.
There isn't a way to do this directly from a web app. The closest you are going to get is the mailto link protocol. That will allow you to specify the recipient, subject, and a text body. No attachment though. And there is no guarantee that Outlook is what will handle the link.
That being said, if you have control of the client computers, it is possible to create a client app that registers its own protocol for you to use instead of mailto. This would allow you to control Outlook in the same was as your original application. Here is a related question that explains this approach: how do I create my own URL protocol? (e.g. so://...)
You can either
use mailto protocol on the client side
If your user is using IE (other browsers do not support COM) and your app is trusted, you can create an instance of the Outlook.Application COM object and create a new message programmatically in your Java script.
I want to add functionality with my our website, when you request to change a set of date (Shown in Gridview). that when you click "Edit" that it would open up in Excel.
When that is completed and the user made changes he/she should click on a addin that would post it back to the website and update in the database.
(For example the Team Foundation Server, you can request to open the tasks in Excel and when it saves it would update TFS)
Would this be possible and can anyone redirect me to some examples to do this
Kind Regards:)
TFS achieves this with a plugin that in installed on the computer running excel and handles the update and integration.
The support for Sharepoint is also built into Office OOB.
You would need you would need to create your own plugin for excel and distribute it to your users.
I want to create an Outlook Add-In that will forward an email to a document library in SharePoint 2010. I've started off by using the Outlook Add-In template and have so far created the ribbon interface and button. This works fine and I can see it in Outlook and click on the button.
The next bit is where I am a little lost; I've added a reference to the SharePoint.dll but I cannot access it in the Outlook - ThisAddIn.cs. Is this not possible or am I missing something?
The solution is to select an email, click on the button that I have created on the ribbon within Outlook, this will load a list of Companies that the email can be associated with via a listbox in SharePoint and then strip and upload the data.
I'm competent in the retrieving and adding information to SharePoint but have never done this in an Outlook Add-In.
I am new to VSTO development so any pointers would be much appreciated.
Thanks
I've added a reference to the SharePoint.dll but I cannot access it in the Outlook
You can only use the Microsoft.SharePoint.dll object model from code actually running on the SharePoint server - not on remove PC's such as your users PC's.
Instead you need to look into SharePoints Web Services or the Client Object Model.
Could anyone point me in the right direction when it comes to handling Word documents (.docx) on the server using asp.net.
I know I can write to and read the .docx document using the API provided.
But I would like to implement this like SharePoint does it. The user browses the web site, he is logged in, then chooses to make a new Word document in a folder, then the Word document downloads and opens locally. Then I would like the user to be able to save the document back to the server.
Alternatively, is there any good components for reading/writing Word documents in the browser. I have tried using the Telerik editor component without any luck.
First: About Sharepoint & Word: Sharepoint is using a protocol called WebDAV to provide this.
Afaik is WebDAV a standard protocol included with IIS (Install Windows Components). Windows can talk with WebDAV like it's some mounted drive, and therefore Word can handle .doc files that are served from there. To communicate with the WebDAV instance from ASP.NET you can use http://www.independentsoft.de/webdav/index.html.
I guess redirecting the user to the Word doc on the WebDAV server should get it working for the user, but I'm not sure about that. Never actually implemented a WebDAV solution.
Good editor: If you have a small set of users, you should have a look at xstandard, I found that by far the coolest rich text editor available. Yet it works with Java/ActiveX, so your users should install the component at first, but it supports image drag-drop etc. I have never seen a native in-browser editor that gives me a good experience (Telerik came closest 2 years ago).
You can integrate with the Zoho writer api http://writer.zoho.com/home?serviceurl=/index.do