SharePoint Products TechCenter >
SharePoint Products and Technologies Forums
>
SharePoint - Development and Programming (pre-SharePoint 2010)
>
Accessing SharePoint in a VB Solution
Accessing SharePoint in a VB Solution
- I have a VB project which transfers files to and from local directories using WinForm tree view controls. If I wanted to start considering SharePoint as a potential data repository to transfer files to and from in this same solution, what do I have to consider with respect to my project?
Do I need to crate a web service to interact with SharePoint? If so, can this be done within a VB Project? Or does this have to be within an ASP.Net project? My unerstanding of a web service is that it does not provide any GUI to the user.
At the end of the day I am trying to figure out how does integrating SharePoint access change my current solution.
Thanks
EM- Moved byMike Walsh MVPMVP, ModeratorTuesday, November 24, 2009 6:23 AMprogramming q (From:SharePoint - General Question and Answers and Discussion)
Answers
- You can use both SharePoint WebServices and Object Model to achieve this. Which one will be easier to adopt really depends on you application details.VB.NET project can be used and most likely you tree view control can also be integrated (with some changes). You may want to first see how this is already done and some of the codes are available online and free. WebServices approch usually the defacto choice if your application will run machines where SharePoint is not installed , otherwise using the object model is bit faster.Following are some of the links , where you can see the code , seems most of the codes available are in C# , but you can convert them into VB.NET using http://www.developerfusion.com/tools/convert/csharp-to-vb/.
http://razi.spaces.live.com/- Marked As Answer byGuYumingMSFT, ModeratorFriday, December 04, 2009 3:41 AM
All Replies
- You can use both SharePoint WebServices and Object Model to achieve this. Which one will be easier to adopt really depends on you application details.VB.NET project can be used and most likely you tree view control can also be integrated (with some changes). You may want to first see how this is already done and some of the codes are available online and free. WebServices approch usually the defacto choice if your application will run machines where SharePoint is not installed , otherwise using the object model is bit faster.Following are some of the links , where you can see the code , seems most of the codes available are in C# , but you can convert them into VB.NET using http://www.developerfusion.com/tools/convert/csharp-to-vb/.
http://razi.spaces.live.com/- Marked As Answer byGuYumingMSFT, ModeratorFriday, December 04, 2009 3:41 AM
- Thanks this is helpful. I have been trying to understand why I would ever use a Web Service. When you say:
"WebServices approch usually the defacto choice if your application will run machines where SharePoint is not installed , otherwise using the object model is bit faster."
Can you provide me with an example of a scenario that would look like this. We use SharePoint at my current job but I am not really using it yet. I know that I can access it via a webbrowser. So if I was to load my VB client-side project on my desktop at the office, does this imply that I would access SharePoint (within this project) via an Object Model (because my company has SharePoint installed in-house). Whereas if I loaded it on a desktop outside of the office (say my laptop at home) that I would want to use a Web Service?
Thanks
EM
