摘要: 1.SHLF      Stream source = properties.ListItem.File.OpenBinaryStream(); byte[] buffer = new byte[source.Length]; source.Read(buffer, 0, (Int32)source.Length); String filecontent=Encoding.UTF8.GetStri... 阅读全文
posted @ 2009-12-25 15:19 玛雅人 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Sometimes while trying to delete documents or move documents from one library to another we get an error "The security validation for this page is invalid. Click Back in your Web browser, refresh the ... 阅读全文
posted @ 2009-12-25 15:11 玛雅人 阅读(1180) 评论(3) 推荐(0) 编辑
摘要: On Saturday when I was adding my finishing touches to my demo for the Philly Code Camp I ran into an error with Visual Studio 2008 VSTO and InfoPath 2007. Whenever I tried to run my InfoPath 2007 form... 阅读全文
posted @ 2009-11-24 12:54 玛雅人 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 1、默认List不接收Mail, Document Library 接收2、默认的Document Library的接收Mail,是sharepoint自己实现的。 SPEmailEventReceiver的方法EmailReceived是空。 所以继承SPEmailEventReceiver后,要实现EmailReceived,不能base.SPEmailEventReceiver();(无反应... 阅读全文
posted @ 2009-11-05 17:38 玛雅人 阅读(418) 评论(0) 推荐(1) 编辑
摘要: Attachments disappear with custom email event handler I was working with custom email event handler in SharePoint using SPEmailEventReceiver and found that when using the default functionality of I am... 阅读全文
posted @ 2009-11-05 17:26 玛雅人 阅读(492) 评论(0) 推荐(1) 编辑
摘要: 效果图:1、新建2、Excel3、详细介绍:1、保存:保存A4和B4的数据到DB并保存、关闭wookbook。2、GetData:从DB中取得数据3、SaveCLose 测试按钮工程和文档下载地址:http://download.csdn.net/source/1760926 阅读全文
posted @ 2009-10-22 14:10 玛雅人 阅读(202) 评论(0) 推荐(0) 编辑
摘要: StreamReader sr=new StreamReader("D:\\5.txt",System.Text.Encoding.Default); 第二个参数可以制定编码格式。 你也可以直接使用文本区对象的LoadFile方法: richTextBox1.LoadFile("D:\\5.txt",RichTextBoxStreamType.RichText); 阅读全文
posted @ 2009-10-16 14:28 玛雅人 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 1、获取程序启动路径 System.Windows.Forms.Application.StartupPath2、ASPX嵌入Server代码<script runat="server"> protected void Page_Load(object sender, EventArgs e) { Response.Write("OK2"); }</script><% SPHttpUtility.NoEncode(m_pageDescription,Response.Output); %>3、后台声明<% =jQ 阅读全文
posted @ 2009-06-24 17:42 玛雅人 阅读(196) 评论(0) 推荐(1) 编辑
摘要: 1、SA 认证:<add key="DbHelperConnectionString" value="Data Source=WS-JACKCH-03\SQLEXPRESS;Initial Catalog=POS;User ID=sa;Password=Password01!"/>2、Windows 认证:<add key="DbHelperConnectionString" v... 阅读全文
posted @ 2009-06-22 13:27 玛雅人 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1、让XP、Vista可以安装Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions (VSeWSS)   参考URL: http://www.cnblogs.com/starfish/archive/2009/02/16/1165842.html  文章简略:修改注册表来实现,如下:      [HKEY_LOCA... 阅读全文
posted @ 2009-06-12 12:58 玛雅人 阅读(203) 评论(0) 推荐(1) 编辑