随笔分类 -  SharePoint

摘要:在moss 2007的定制开发中很多功能都可以通过feature完成,好处就是feature能在moss的所有网站中使用。为了方便我们进行feature的部署和卸载,通过脚本来完成部署和卸载。部署和卸载脚本如下,需要进行适当的修改。部署脚本:echo Copying the feature...echo.rd /s /q "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\CheSequential"mkdir "%CommonProgramFiles% 阅读全文
posted @ 2012-05-22 17:47 Areas 阅读(259) 评论(0) 推荐(0)
摘要:Features 是MOSS 2007以开箱即用的一套新功能,Features 存储在SharePoint服务器的如下路径下:C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES。每个Featrue在此路径下有自己的子目录,在每一个Feature子目录下会发现名字为Feature.xml的文件,它存储一些关于Featrue的metadata信息。下面我就利用feature来实现一个小功能,在"网站操作"中添加自定义的菜单,首先使用VS2005建立一个 阅读全文
posted @ 2012-05-22 17:45 Areas 阅读(311) 评论(0) 推荐(0)
摘要:首先演示一下如何操作。1. 在列表中点击 “导出到Excel”2. 点击“保存”3. 点击“打开”SharePoint 默认的“导出到Excel”文件的功能,会导出一个“owssvr.iqy”文件,当我们查看这个文件的大小时会发现,该文件只有1kb,因为这个文件只有在打开时会连接到SharePoint网站读取数据。然后我们就可以将这个文件另存为一个excel文件,但文件中有很多我们不需要的栏。基于以上问题,便开发了一个可以替代SharePoint原有的导出Excel功能。直接将当前列表视图中的数据导出成一个excel文件。目前只对导出自定义列表视图到Excel文件,如果要添加文档库可以修改 “ 阅读全文
posted @ 2012-05-22 17:42 Areas 阅读(406) 评论(0) 推荐(0)
摘要:命名空间:Microsoft.SharePoint SPSite 功能: Represents a collection of sites on a virtual server, including a top-level site and all its subsites. 代表一个虚拟服务器的网站集合,包含一个顶集网站和他的所有子站点Windows SharePoint Services类库说 命名空间:Microsoft.SharePoint SPSite 功能: Represents a collection of sites on a virtual server,... 阅读全文
posted @ 2012-05-21 10:43 Areas 阅读(207) 评论(0) 推荐(0)
摘要:<Query> <Where> <Eq> <FieldRef Name="GUID" /> <Value Type="Text">CF498365-DFEB-41B4-BBCC-20ED462CDFDA</Value> </Eq> </Where></Query> 阅读全文
posted @ 2012-05-21 10:41 Areas 阅读(140) 评论(0) 推荐(0)
摘要:Is your email address OK?You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please clickhereto have a confirmation email sent so we can confirm your email address and start sending you newsletters again. Alternatively, you 阅读全文
posted @ 2012-04-24 17:38 Areas 阅读(473) 评论(0) 推荐(0)
摘要:SharePoint 2010Other Versions0 out of 20 rated this helpfulRate this topicPublished: May 2010This programming task shows how to use theUpdateListItemsmethod of theListsWeb service to update items in a list through a Microsoft Windows Forms application.Use anXmlElementobject to create aBatchelement i 阅读全文
posted @ 2012-03-26 17:52 Areas 阅读(462) 评论(0) 推荐(0)
摘要:IntroductionHow to use the sharepoint web services in the web application.This process is very easy to use just add web reference to the webservice and start using.1-Add the webservices reference to your projectHere are list of sahrepoint webservices i have used1-DWS-Create delete folder2-Lists-Disp 阅读全文
posted @ 2012-03-26 17:51 Areas 阅读(312) 评论(0) 推荐(0)
摘要:最近在用Ext.NET,因为是在SharePoint环境下使用,一直被这样一个问题所困扰着:在使用Ext.NET时,页面必须使用拥有管理权限的用户刷新一次(只要刷新其中任意Ext.NET页面),其他用户才能显示界面。查看网页源代码,发现Extjs的脚本文件和CSS文件并没有注册。而Extjs的脚本文件和css文件是作为资源嵌套在Ext.NET的dll中的。由此想到,应该是用户权限问题,导致Ext.NET的ResourceManager1控件无法注册脚本。本以为应该挺好解决的,结果设置dll的安全权限设置为Everyone不行,iis匿名访问等等也不行,配置Web.config的safecont 阅读全文
posted @ 2012-03-26 14:27 Areas 阅读(339) 评论(1) 推荐(0)
摘要:string targetDocName ="Test1Name.txt"; string destinationUrl =Uri.EscapeDataString("https://someaddress.com/Reports/Temp/"+ targetDocName); string[] destinationUrls ={ destinationUrl }; SPCopyWebService.FieldInformation i1 =newSPCopyWebService.FieldInformation{DisplayName="T 阅读全文
posted @ 2012-03-22 19:36 Areas 阅读(259) 评论(0) 推荐(0)
摘要:These days I've been involved in a migration project from Sharepoint 2001 to MOSS 2007, what I had to do was move all the documents from a document workspace in SPS2001 to a WSS3.0 document library. Since some of the custom metada had to be migrated with the documents and the SP2001 profiles had 阅读全文
posted @ 2012-03-22 19:32 Areas 阅读(519) 评论(0) 推荐(0)
摘要:PrefaceSharePointis a very vast topic to discuss. There are many documents, articles, discussion forums and FAQs available on the internet discussing various aspects ofSharePoint. Still, getting consolidated information on some topics seems to be very difficult. The topic discussed here is one among 阅读全文
posted @ 2012-03-22 19:30 Areas 阅读(277) 评论(0) 推荐(0)
摘要:SharePoint通过一系列Web Services来支持互操作和远程调用,这里的SharePoint,我指的是WSS 3.0(Windows SharePoint Services)和MOSS 2007(Microsoft Office SharePoint Server)。有好几种方法来编程访问SharePoint,比如对象模型、Web Services、RPC over HTTP、以及WebDAV,所有这些方式基于应用程序的需要都有它们各自的优点和适用范围。SharePoint RPC协议很有用也很强大,特别在添加内容到服务器的时候,它确实有它的优势。对象模型比Web Service更 阅读全文
posted @ 2012-02-28 12:35 Areas 阅读(896) 评论(0) 推荐(0)
摘要:http://XXXXX/_vti_bin/Lists.asmx?wsdlhttp://XXXXXXX:28717/sites/CCCC/_vti_bin/Copy.asmx?wsdlThe url should point the the Central Admin site and not to a site collection you created. 阅读全文
posted @ 2012-02-27 13:59 Areas 阅读(217) 评论(0) 推荐(0)
摘要:<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server"><style type="text/css">.ms-bodyareaframe {padding: 0px;}.ms-listheaderlabel{display: none;}.ms-viewselector{display: none;}</style></asp:Content> 阅读全文
posted @ 2012-02-22 17:16 Areas 阅读(153) 评论(0) 推荐(0)
摘要:Lookup fields were innovative feature offered in SharePoint Portal Server 2003 that eased design/development efforts in terms of providing an interface that allows users to pick up dynamically changing values.Consider a retail store scenario, where users would order products by creating new items in 阅读全文
posted @ 2012-02-22 17:15 Areas 阅读(359) 评论(0) 推荐(0)
摘要:<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server"><style type="text/css">.ms-bodyareaframe{padding:0px;}.ms-listheaderlabel{display:none;}.ms-viewselector{display:none;}</style></asp:Content> 阅读全文
posted @ 2012-01-12 11:34 Areas 阅读(254) 评论(0) 推荐(0)
摘要:Created a label, name is FinishForm, text is An exception of type System.IO.InvalidDataException was thrown. Additional exception information: The web configration file, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\webconfig.dlc.xml, does not have element "conf 阅读全文
posted @ 2012-01-10 15:49 Areas 阅读(902) 评论(0) 推荐(0)
摘要:在MOSS开发自定义功能后,出现错误页面只显示“出现未知错误”的提示,查看很不方面,通过下面方法就可以直接在出错页面查看错误信息。修改Web应用程序根目录上的Web.config文件中的两个地方:查找以下位置并更改即可(红色为更改前后的值)一、MaxControls="200" CallStack="false"改为MaxControls="200" CallStack="true"二、customErrors mode="On"改为customErrors mode="Off&quo 阅读全文
posted @ 2012-01-06 17:05 Areas 阅读(210) 评论(0) 推荐(0)
摘要:大家都知道ASP.NET中GridView导出Excel的方法。在SharePoint中SPGridView是继承GridView的一个扩展控件,那么ASP.NET中的导出方法在SharePoint中也应适用。是可以用,但是有一个问题,就是第一次点击按钮导出成功后,你再次点击按钮的话,按钮就不在有用了。于是Google了一下,找到了这篇Export GridView to Excel in web part帖子解决了问题,就是在Page_Load中注册两行Javascript脚本。?1234567protected void Page_Load(object sender, EventArgs 阅读全文
posted @ 2011-12-27 16:37 Areas 阅读(257) 评论(0) 推荐(0)