2011-03-07 60 views
0

I want to get some useful data from *.csv file through the retrieve query, then put these data in the reference column of the sharepoint list using the admin account.which sharepoint project should be created in VS2010?

Which sharepoint project in VS2010 should I choose? And what should I do in next?

Thanks

如果我是要從 *.csv 文件中取一些數據 ,然後放到sharepoint上, 應該選擇哪種工程呢?然後接下來應該怎麼做呢?

謝謝

+0

Could you provide a little more information on what it is you are wanting to do? – Nat 2011-03-07 20:22:41

回答

2

If you only need to run this job once you could create a console application and let it run on the server. Include a reference to the Microsoft.SharePoint.dll to be able to use the Object Model of SharePoint. See http://msdn.microsoft.com/en-us/library/ms473633.aspx for an overview of the different objects you can use. (SharePoint 2010)

If you have no access to the server you could try the same using the webservices that sharepoint exposes. See http://msdn.microsoft.com/en-us/library/ms479390(v=office.12).aspx for a list of the webservices in WSS3.0

But if you need it be done regularly your better of creating a webpart or a custom service to include into SharePoint. See http://msdn.microsoft.com/en-US/sharepoint/ee513148.aspx for an intro on building a WebPart for SP2010.

Google around, there is a lot to find about interaction with sharepoint through its object model.

相關問題