摘要: ASP.NET在调用Office Com组件时,经常会出现权限限制的问题,而出现如下错误:现通过以下几步设置,可解决上述问题:(1)64位系统中,请在IIS应用程序池集成模式中应启用调用32位应用程序,或设应用程序池的模式应为”经典“(2)设置DCOM,在“开始”-“运行”中运行命令:Dcomcnf... 阅读全文
posted @ 2014-06-17 22:26 --宁静以致远-- 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: public partial class WebForm1 : System.Web.UI.Page{ DataSet dsTreeView = new DataSet(); protected void Page_Load(object sender, EventArg... 阅读全文
posted @ 2014-05-29 15:02 --宁静以致远-- 阅读(274) 评论(0) 推荐(0) 编辑
摘要: --创建聚集索引create clustered index ix_tbl_test_DocDateon tbl_test(DocDate)with fillfactor=30GO--创建非聚集索引create nonclustered index ix_tbl_test_DocNoon tbl_t... 阅读全文
posted @ 2014-05-07 10:05 --宁静以致远-- 阅读(265) 评论(0) 推荐(0) 编辑
摘要: http://tonyqus.sinaapp.com/tutorial 阅读全文
posted @ 2014-04-08 23:30 --宁静以致远-- 阅读(161) 评论(0) 推荐(0) 编辑
摘要: declare @yr int,@mth int,@logistics_code varchar(30),@fee_type varchar(50)select @yr=2014,@mth=1,@logistics_code='All',@fee_type='All'declare @index int,@from_date datetime,@to_date datetime,@strDateList varchar(180),@strSql varchar(1000)select @index=1,@strDateList='',@from_ 阅读全文
posted @ 2014-03-25 23:30 --宁静以致远-- 阅读(518) 评论(0) 推荐(0) 编辑
摘要: --创建登录账户use masterGOEXEC sp_addlogin 'jacky', 'pwd'--EXEC sp_droplogin 'jacky' --删除登陆账户 use TestDBGO--创建数据库用户EXEC sp_grantdbaccess 'jacky'GO--drop sc... 阅读全文
posted @ 2014-03-24 23:25 --宁静以致远-- 阅读(1614) 评论(0) 推荐(0) 编辑
摘要: public static class ExtendMethods { /// /// 绑定列表控件 /// /// 列表控件 /// 数据表 public static void BindListControl(this ListControl listControl, DataTable dt) { if (dt != null) { listControl.DataSource = dt; ... 阅读全文
posted @ 2014-02-21 09:58 --宁静以致远-- 阅读(155) 评论(0) 推荐(0) 编辑
摘要: protected void Page_Load(object sender, EventArgs e) { Response.Clear(); Response.ContentType = "application/json;charset=utf-8"; string str = ""; DataSet ds = SqlHelper.GetSqlDataSet("select top 3 Staff_id,name_sc as Staff_name from [tbl_ac... 阅读全文
posted @ 2014-02-20 16:21 --宁静以致远-- 阅读(13225) 评论(0) 推荐(0) 编辑
摘要: 打包成CAB安装包生成了msi文件,用户安装的时候会像安装普通软件一样,需多次一步安装,打包成cab文件的方式,做到用户点击运行后,即可自动安装。在这里需要准备文件有:(1)cabarc.exe:微软提供的cab打包工具(2)LamSoonActivex.msi: 本案例中项目生成的windows部署安装文件(3)install.inf : 需要跟打包在一起的文件(4)build.bat: 打包的批处理命令1.制作install.inf[version]signature="$CHICAGO$"AdvancedINF=2.0[Strings]Version="3. 阅读全文
posted @ 2013-12-06 11:42 --宁静以致远-- 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 项目结构创建Activex步骤:1.选择创建类别(Windows 控件库或类库)2.设置对应的com属性AssemblyInfo.cs中须做以下设置:a.引入命名空间:using System.Security;b.[assembly: AllowPartiallyTrustedCallers()]3.生成的证书能正常在IE下安装,需继承IObjectSafety,考虑到所有的生成的证书都需继承自该接口,需写一个基类,代码如下:a.接口代码:using System;using System.Collections.Generic;using System.Text;using System. 阅读全文
posted @ 2013-12-06 11:23 --宁静以致远-- 阅读(250) 评论(0) 推荐(0) 编辑