摘要: 右击“SharePoint 2010 management shell” 以管理员身份运行 Add-SPSolution -LiteralPath "C:\…..wsp" 阅读全文
posted @ 2011-05-25 11:32 dtlcq 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 最近做一个项目时,由于数据库数据量较大,查询很耗时,无法查询,老是超时~~ 注意红色部分 connection.Open(); SqlDataAdapter command = new SqlDataAdapter(SQLString, connection); command.SelectCommand.CommandTimeout = 500; command.Fill(ds, "ds... 阅读全文
posted @ 2011-05-13 09:58 dtlcq 阅读(946) 评论(1) 推荐(0) 编辑
摘要: 今天在调用excel.Application.Workbooks.Add(Missing.Value)时遇到如下错误: Exception: Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD)) 这是Excel自身的一个bug,当本地系统环境被设置成非英文的,... 阅读全文
posted @ 2011-04-21 16:13 dtlcq 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 在sharepoint 2010中对list提供了“对话框”操作模式,即不需要离开当前页面就能操作数据。如果list的字段太多了“对话框”,就不太好用了~~~以下是list“对话框”的关闭: list-->List Settings--> Advanced Settings -->Dialogs 阅读全文
posted @ 2011-04-20 11:09 dtlcq 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Excel 下拉框设置: 数据->有效性->序列C# 代码操作: 单元格已经设置成下拉选项: worksheet.get_Range(worksheet.Cells[1, 1], worksheet.Cells[1, 1]).Validation.Modify(Excel.XlDVType.xlValidateList, Excel.XlDVAlertStyle.xlValidAlertStop, Type.Missing, "1,2,3", Type.Missing); 单元格未设置成下拉框: worksheet.get_Range(worksheet.Cel 阅读全文
posted @ 2011-04-20 10:34 dtlcq 阅读(974) 评论(0) 推荐(0) 编辑
摘要: 此编程任务说明如何在 Microsoft Visual Studio 2010 中创建一个用于显示网站集中的列表数的控制台应用程序。用户必须是执行控制台应用程序的计算机上的管理员,才能在 Microsoft SharePoint Foundation 上下文中运行该应用程序。在 Visual Studio 中创建控制台应用程序在 Microsoft Visual Studio 中的“文件”菜单上,指向“新建”,然后单击“项目”。在“新建项目”对话框中,在“已安装的模板”框中选择一种语言,然后选择“控制台应用程序”模板。在“名称”框中键入应用程序的名称,在“位置”框中键入指向要创建应用程序的位置 阅读全文
posted @ 2011-04-19 11:22 dtlcq 阅读(273) 评论(0) 推荐(0) 编辑
摘要: The dialog platform was introduced in SharePoint 2010 as a way to keep users in context when working with items in lists and document libraries. At its basics, the dialog platform is an HTML IFrame that is loaded on top of a page. The dialog can contain any Web page stored on the Web front end or an 阅读全文
posted @ 2011-04-19 11:13 dtlcq 阅读(465) 评论(0) 推荐(0) 编辑