How to import a Sharepoint document library into Visual Studio 2010? - c#

I need to import a document library created in Sharepoint 2010 into Visual Studio 2010 to be able to deploy it as a part of the final solution. How can it be done?

You can export a document library easily by going to the library settings and choose "Save document library as template". This template then is easily imported to Visual Studio 2010.
What you can also do though is to export your whole Site as a site definition which you then can import to Visual Studio and probably extract your document library. Here is some sample code and a video:
Importing SharePoint 2010 Site Definitions in Visual Studio 2010

Related

Excel importing to c# windows application

I have an excel sheet with more than 10 tables, and I would need to import those tables into a c# windows application.
I started to do the same by trying to import these tables into a datatable in c#.
I am using visual studio community 2013, and when I try to reference the Microsoft office in my project I only get "Microsoft.Office.Core". I am not sure how do I use this in my application to import my excel sheet.
Do I need to have licenced Microsoft Office to import a excel into my application?
Add a reference to the Excel Interop DLL in the PIA folder:
%ProgramFiles%\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15

can't see anything under Visual C# template inside visual studio 2010

I installed C# and business intelligence inside visual studio 2010 and now I'm able to access/create BI projects but can't findout anything under Visual C# template "no item found"
In visual studio project creation form -> choose Visual C# and choose Installed Templates.
You see no item found cause most probably you have selected Online Templates.

Can an Excel add-in built for Excel 2010 work in Excel 2013?

I have an Excel Add in , which is built in Visual Studio using C#.
This add-in was designed for Microsoft Excel 2010, but I want to know if it is possible to run the same add-in in excel 2013.
I am getting the following error:
You cannot debug or run this project because the following version on microsoft office is not installed
Is there any way to run the same code for Excel 2013?
Yes it is, but it searches for Office 2010 by default. If you have Office 2013 installed, it can't find it.
You should provide the startup executable to Visual Studio. You have to set the Start external program in the project properties to the Excel executable. At my desktop it is C:\Program Files\Microsoft Office\Office15\EXCEL.EXE.

What's the difference between an MS Office Visual Studio Add-in, Shared Add-in, and Excel 2010 Add-in?

I am using Visual Studio 2010 to create a new add-in for Excel. Ideally I would like it to work with Excel 2011 (Mac), 2010, and 2007.
There are three template options to choose from when I start a new C# project.
(Office) Excel 2010 Add-in
(Extensibility) Visual Studio Add-in
(Extensibility) Shared Add-in
What are the differences between these template choices?
Thanks in advance.
From MS. As the name implies, you probably want to use shared add-in.
Office Excel 2010 Add-in
Creates an application-level add-in for Excel 2007 or Excel 2010. For more information, see Getting Started Programming Application-Level Add-Ins and Excel Solutions.
(Extensibility) Visual Studio Add-in
Visual Studio Add-ins add functionality to the Visual Studio and Visual Studio Macros environments. For more information, see How to: Create an Add-In.
(Extensibility) Shared Add-in
Shared Add-ins can add functionality to one or more Microsoft Office applications, as well as to Visual Studio. For more information, see How to: Create an Add-In.
Reference: http://msdn.microsoft.com/en-us/library/0fyc0azh.aspx
#1 and #3 will work for Windows machines, but straight from Geoff Darst of Microsoft's VSTO team, "the .Net Development Platform and Visual Studio Tools For Office are Windows only." You'll have to code in VBA to get functionality across all three versions.
If you want to target just the Windows environment, make sure you target the 2007 version of Excel, as I don't believe solutions developed for Excel 2010 are backward compatible with Excel 2007.

Use VisualStudio 2010 for editing InfoPath C# code

The default editor for InfoPath 2007 C# code is VSTA. It has very low functionality and I want to use my VS 2010. Is this possible? If yes, how?
I tried to create a project out of an existing one, but i couldnt import the correct assemblies.
"Visual Studio 2010 does not include the InfoPath form template projects that were provided in previous versions of Visual Studio. You also cannot use Visual Studio 2010 to open or edit an InfoPath form template project that was created in a previous version of Visual Studio."
http://social.msdn.microsoft.com/Forums/en/officedevelopmentprerelease/thread/18a93486-0773-44cb-ae04-cc4b8f75c205
How to do development with Infopath and Visual Studio 2010 Video :
http://channel9.msdn.com/Learn/Courses/Office2010/InfoPathUnit/InfoPathVisualStudio

Categories