Excel Addin and ASP.net - c#

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.

Related

How to embed Google Docs or Office 365 editor?

I've already checked some questions here on SO but couldn't find much help...
This one, for instance, is from 2011:
Embed Google docs editor into webpage?
My users need to be able to edit their Word documents on my website, just like Google docs editor and Office 365. Since I couldn't find information on how to easily integrate those, my current attempt was to convert the Word document to HTML (using OpenXmlPowerTools.HtmlConverter.ConvertToHtml) show it in a HTML editor and after the user edited the content save it back to the file (using NotesFor.HtmlToOpenXml).
Is this going to work? Is there any way to integrate either Google Docs or Office 365 to my website, allowing user to edit their content right there? If not, is it possible to programmatically create a document, send it to Google Docs/Office 365 have the user edit it there and then get the document back to save locally again?
Box and Dropbox have done it:
https://blogs.dropbox.com/dropbox/2015/04/dropbox-and-office-online/
https://www.box.com/blog/introducing-box-for-office-online/
Thanks!
The only thing i've been working with is Office365, so my answer is based on that, but i think you would be able to do the same in Google Apps.
Right now it's not possible to embed a document from Office365 in your own website for editing, only for viewing, but i guess this might change at some point.
But what you could do is to create a document, upload it do OneDrive, get a link to that file and make a button to open it in Office Online, after the edit is done, then the file would be on the users OneDrive.
If you would like to get the file to your system, it's just a matter of getting access to the users OneDrive.
Most of the operations can be achieved with the Graph API, http://graph.microsoft.io/, and all of it can be done without the user having to do anything. You just need to get the right permissions for the app that gets acess to Office365.

Get hyperlink click event of MS office applications

I have a strange requirement from my client. They want to have some hyperlinks witin the documents of any MS office applications like MS word, excel, powerpoint etc. If any sentence is hyperlinked with some value, can i get an event of that hyperlink in my asp.net C# code.? I have stuided INTEROP dll of .net. I know that a new excel workbook can be created or a word document can be created but can i get an event of the hyperlink that lies within the document.?
please help
Couple of things you could do here.
You could make all the hyperlinks point to a specific web page that does what you need to do.
Or, you could register your own protocol. Instead of http you could register myProtocol protocol and make all the links in the docs myProtocol://my.custom.protocol. Having your application registered to handle that protocol.
register as the default web browser. This would allow you to handle all the links without changing the current documents.
Each has its own problems obviously. A web page isnt local so it doesnt have all the ability that a local app has, a custom protocol isnt very user friendly, and hijacking the default web browser could make your users upset.
This idea should be rethought, but there are a few options.

Creating an Outlook add-in that sends email to document library in Sharepoint

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.

ASP.NET Invoking Outlook w/ attached file

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.

How do I save preferences for my VSTO plugin?

I've written a VSTO plugin for MS Project 2007 which basically just publishes Project data to our Sharepoint portal. To do this, the user has to enter in the sharepoint site name into our plugin everytime that they want to publish.
How do I persist this information so that the user only has to enter the information once? Ideally, I'd like to save it as part of the Project file so that it's portable from user to user. If that's not possible, I'll settle for it just persisting on a single user's machine.
The best solution I have so far, is to just store a mapping of Project filenames to Sharepoint sites in the User's temp directory, but that just doesn't seem like the cleanest way to do things.
Maybe you could store it using IsolatedStorage:
http://msdn.microsoft.com/en-us/library/3ak841sy.aspx

Categories

Resources