摘要: DocOptimizer 是一个文档优化工具,它通过移除Excel中多余的单元格;将嵌入的OLE替换成图片;移除文档中的隐藏信息;优化文档中的图片等等手段,将Office或PDF文件压缩20%-90%. 压缩过的文件和源文件看起来完全一样,Word还是Word,PPT还是PPT, 只是文件大小从几M,几十M,变成了几K. 阅读全文
posted @ 2014-06-11 18:05 心利 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 这个控件SharePoint用来选择Field ,和Content Type, 以下是一个完整的示例。 " EncodeMethod='HtmlEncode' /> ... 阅读全文
posted @ 2013-11-07 11:47 心利 阅读(465) 评论(0) 推荐(0) 编辑
摘要: Microsoft Sharepoint's ECMAScript (JavaScript, JScript) object model allow you to interact with SharePoint sites from script that executes in the browser.In this post we will see a detail example of ... 阅读全文
posted @ 2012-06-11 17:54 心利 阅读(344) 评论(0) 推荐(0) 编辑
摘要: The SharePoint forms for the lists (NewForm.aspx and EditForm.aspx) will validate many things. For example, you can make a field bea required field and the forms will make sure the user input somethi... 阅读全文
posted @ 2012-04-12 13:21 心利 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: 我们的Sharepoint程序有时泄露了很多SPWeb,SPSite对象,SharePoint日志中就会有很多错误信息,如下: An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it. This object will now be disposed. Allocation Id: {5E41622E-AFA6-44E4-AAB3-809A70D39CCA} To determine where this object was allocated, set Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAlloc 阅读全文
posted @ 2011-10-24 10:30 心利 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 有时我们需要在客户端为PeopleEditor控件填充值,但是PeopleEditor控件生成的HTML很复杂,包含一坨乱七八糟的东西。好吧,下面的这个JavaScript函数可以为你做这个(只在SharePoint 2010测试过)。 function setPeoplePicker(pickerid, value) { var field = ... 阅读全文
posted @ 2011-09-23 18:01 心利 阅读(434) 评论(0) 推荐(0) 编辑
摘要: SharePoint 的一些小技巧,关于Ribbon,People Editor 阅读全文
posted @ 2011-09-22 16:31 心利 阅读(406) 评论(0) 推荐(0) 编辑
摘要: T4 (Text Template Transformation Toolkit),是Visual Studio 2008中的一个基于模板的代码生成器。本文首先简要介绍如何使用T4,然后使用T4实现一个实体类生成工具。 阅读全文
posted @ 2009-07-19 18:23 心利 阅读(10917) 评论(20) 推荐(12) 编辑
摘要: 假设你在做一个AJAX-oriented 项目,使用JavaScript访问服务器 ,获取Json 对象,然后操作DOM,将它们显示出来。如果遇到一些复杂的页面,需要获取和展示大量的JSON对象,那该如何处理?为每一个对象单独写一段JavaScript代码创建相应的HTML?那样的话随着JavaScript代码越来越多,页面会变的越来越复杂,而且你不得不通过修改JavaScript代码来改变HTML样式。 阅读全文
posted @ 2009-06-11 16:30 心利 阅读(2828) 评论(11) 推荐(1) 编辑
摘要: 简单介绍在Windows Mobile系统上创建网络连接的2种方法。 1, 通过用于更改系统配置的API DMProcessConfigXML。 2,创建的拨号连接的操作,其实是创建一个Phone-Book Entries,并将其存入注册表中。Phone-Book Entries包括一组值,例如用户名,密码,phone number ,network protocols等,操作系统使用Phone-Book Entries中的值创建RAS 连接。方法二通过RAS API 创建一个Phone-Book Entries,并在注册表中填入相应的项。 阅读全文
posted @ 2009-05-21 16:45 心利 阅读(3249) 评论(14) 推荐(0) 编辑
SharePoint Add-ons