01 2013 档案
摘要:问题描述:using System;using System.Collections.Generic;using System.Text;using Microsoft.SharePoint; namespace NCR{ class NCRListEventHandler: SPItemEventReceiver { /// <summary> /// Update NCRPrint calculated column so ID column is not blank. Without this new items have ID empty in ...
阅读全文
摘要:在SharePoint2007下测试通过。使用SharePoint对象模型:SPFieldCollection collFields = list.Fields;//Update the calculated columnif (collFields.ContainsField("Document ID")){ collFields["Document ID"].Update();}使用Powershell:[System.Reflection.Assembly]::LoadWithPartialName(”Microsoft.SharePoint”)#
阅读全文
摘要:删除群组:错误的做法:foreach (SPGroup group in web.SiteGroups){ if (group.Name.ToLower() == grpName.ToLower()) { web.SiteGroups.Remove(grpName); }} 原因:当我们增加或删除集合中的条目(Item)时候,Enumerator枚举不知道数据集合中有多少个条目(Item)。正确的做法:for (int index = 0; index <= web.SiteGroups.Count...
阅读全文
摘要:手工方式:前提分别在site collection和Site Feature中启用Feature:Office SharePoint Server Publishing。比如两个feature都启用。由于此Feature创建了Pages library。如果此Feature没有启用,你在设置欢迎页面的时候,将会收到如下报错信息:The site is not valid. The 'Pages' document library is missing.如果相关的Feature没有启用,你将不能看到以上画面,你可以通过固定的页面地址来进行访问。比如:http://Mingle/s
阅读全文
摘要:错误信息:Failed to instantiate file "ALU.C0370A.Agora.WebPart\CDispFormWebPart.webpart" from module "WebPartPopulation": Source path "ALU.C0370A.Agora.WebPart\CDispFormWebPart.webpart" not found. at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(Str
阅读全文

浙公网安备 33010602011771号