Visual Basic窗体表单应用程序显示Sharepoint列表 [英] Visual Basic Window Forms Application to display Sharepoint List
问题描述
您好
我正在寻找一些代码示例来帮助我开发在公司桌面上运行的一些公司实用程序应用程序。
我一直在使用Visual C ++ Win32项目和Visual Basic Windows窗体应用程序创建一些公司工具,以自动为我们所负责的项目创建Word文档和Excel电子表格。
我最近被问到是否可以在这些应用程序中实现功能,以便使用存储在我们的Sharepoint服务器列表中的数据(即Active Projects等)自动填充一些组合框。
我尝试了几个在互联网上找到的例子,但似乎都没有工作,最成功的尝试在以下代码中失败,因为Visual Basic自动添加了打开/关闭括号? / p>
  
'***致电服务*** *************** 跨度>
   
请求 。 打开 ( " POST" ,
SOAPURL_List ,
错误 ,
curUserName ,
curPassword )
请求 。 setRequestHeader ( " Content-Type" ,
" text / xml; charset = utf-8" )
请求 。 setRequestHeader ( " SOAPAction" < span style ="background:black; color:gainsboro; font-family:Consolas; font-size:9.5pt">,
SOAPAction )
请求 。 发送 ( SOAPMessage )
应用程序当前依赖于用户手动输入此信息以生成其输出,此更新将集中限制无效数据输入的信息。
我对Sharepoint开发的经验很少,所以我会如果可能的话,请欣赏一步一步的指南,从带有组合框的空白Windows窗体应用程序开始,以显示当前托管在我们服务器上的Sharepoint列表(即活动项目编号,
只读!)的内容?
一旦我知道如何使用Visual Basic访问数据,我应该能够弄清楚如何解析信息并将其移植到C ++应用程序。
谢谢
Alan Barclay
根据我的理解,您想要在C ++应用程序中检索SharePoint数据,您可以尝试调用SharePoint库来检索SharePoint数据。
例如:
以下是一些线索供您参考。
https://sergeluca.wordpress.com / 2009/08/31 / calling-sharepoint-dlls-from-c-code /
https://stackoverflow.com/questions/ 4818136 / call-c-sharp-dll-function-from-c-cli
最好的问候,
利跨度>
Hi
I’m looking for some code examples to assist me in the development of some company utility applications running on the company desktops.
I have been creating some company tools using both Visual C++ Win32 Projects and Visual Basic Windows Forms Applications to automate the creation of Word documents and Excel spreadsheets for the projects we are tasked with.
I have recently been asked if it would be possible to implement functionality into these applications to automatically populate some combo boxes with data stored within our Sharepoint server lists i.e. Active Projects etc.
I have attempted several examples found on the internet, but none appear to be working, the most successful attempt fails at the following code, as Visual Basic automatically adds the Open/Close brackets?
'*** CALL THE SERVICE **************************************************
Request.Open("POST", SOAPURL_List, False, curUserName, curPassword)
Request.setRequestHeader("Content-Type", "text/xml; charset=utf-8")
Request.setRequestHeader("SOAPAction", SOAPAction)
Request.Send(SOAPMessage)
The applications currently rely on the user entering this information manually to generate their output and this update would centralise the information restricting invalid data entry.
I have very little experience with Sharepoint development, so I’d appreciate a step by step guide if possible say starting with a blank windows forms application with a Combo Box to display the contents of a Sharepoint list (i.e. Active Project Numbers, Read Only!) that is currently hosted on our server?
Once I know how to access the data using Visual Basic, I should be able to figure out how parse the information and also port this to the C++ applications.
Thanks
Alan Barclay
Hi,
As per my understanding, you want to retrieve SharePoint data in C++ application, you could try to call SharePoint library to retrieve SharePoint data.
For example:
Here are some threads for your reference.
https://sergeluca.wordpress.com/2009/08/31/calling-sharepoint-dlls-from-c-code/
https://stackoverflow.com/questions/4818136/call-c-sharp-dll-function-from-c-cli
Best Regards,
Lee
这篇关于Visual Basic窗体表单应用程序显示Sharepoint列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!