随风而去

博客园 首页 新随笔 联系 订阅 管理

2008年8月7日 #

摘要: 如果角部如动态行一致显示两列,在角部从工具栏拉入矩形控件,然后在矩形控件中添加文本框,保存为execl角部数据就可显示的 阅读全文
posted @ 2008-08-07 13:47 Aaron_Zhang 阅读(268) 评论(0) 推荐(0)

2008年8月4日 #

摘要: 如果在 vs2005 进行预览时需将dll文件放到vs2005的安装目录 C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies.如果 部署前需将dll文件放到sql server 2005 安装目录 C:\Program Files\Microsoft SQL Server\MSSQL.X\Reportin... 阅读全文
posted @ 2008-08-04 14:34 Aaron_Zhang 阅读(265) 评论(0) 推荐(0)

2008年7月29日 #

摘要: 整数部分: select cast(20.01 as int)小数部分: select 20.01 - cast(20.01 as int) 阅读全文
posted @ 2008-07-29 14:46 Aaron_Zhang 阅读(967) 评论(0) 推荐(0)

2008年7月10日 #

摘要: "Ad Hoc DistributedQueries "如果为此选项设置了非零值,SQL Server 将不允许通过 OPENROWSET 和 OPENDATASOURCE 函数即席访问 OLE DB访问接口。如果未设置此选项,SQL Server 也不允许即席访问。即席分布式查询使用 OPENROWSET 和 OPENDATASOURCE 函数连接到使用 OLE DB 的远程数据源。OPENRO... 阅读全文
posted @ 2008-07-10 14:31 Aaron_Zhang 阅读(279) 评论(0) 推荐(0)

2008年7月8日 #

摘要: [代码] 阅读全文
posted @ 2008-07-08 16:57 Aaron_Zhang 阅读(238) 评论(0) 推荐(0)

2008年6月4日 #

摘要: createtable#tempTable(--实验表[oldID]char(1),[newID]char(1),[name]varchar(10))insertinto#tempTablevalues('1','6','zhang')insertinto#tempTablevalues('2','7','li')insertinto#tempTablevalues('3','8','wang')... 阅读全文
posted @ 2008-06-04 16:31 Aaron_Zhang 阅读(1212) 评论(0) 推荐(0)

2008年5月29日 #

摘要: 1,统计函数 avg, count, max, min, sum 多数聚会不统计值为null的行。可以与distinct一起使用去掉重复的行。可以与group by 来分组 2, 数学函数 SQRT ceiling(n) 返回大于或者等于n的最小整数 floor(n), 返回小于或者是等于n的最大整数 round(m,n), 四舍五入,n是保留小数的位数 abs(n) sign(n), 当n>... 阅读全文
posted @ 2008-05-29 17:45 Aaron_Zhang 阅读(205) 评论(0) 推荐(0)

2008年5月26日 #

摘要: 若要为参数设置多值属性,则在“报表参数”对话框上选择“多值”选项。可以将任何参数类型设置为多值(除布尔值之外)。 您可以为要创建的任何报表参数定义多值参数。不过,如果要将多个参数值传回查询,则必须满足下列要求: 数据源必须为 SQL Server、Oracle 或 Analysis Services。 数据源不能是存储过程。Reporting Ser... 阅读全文
posted @ 2008-05-26 14:07 Aaron_Zhang 阅读(3152) 评论(0) 推荐(0)

2007年12月14日 #

摘要: 通过资源文件实现多语言程序,用不同的模块 来表示不同的语言1. 新建一类库项目resx,添加一个类文件Class1.cs, 同时添加一资源文件Form1.resx根据需要对Form1.resx 进行编辑2.在Class1.cs 中添加一方法/**////<summary>///读取资源文件,用于变换语言///</summary>///<paramname="name"... 阅读全文
posted @ 2007-12-14 17:57 Aaron_Zhang 阅读(522) 评论(0) 推荐(0)

2007年11月27日 #

摘要: 添加KeyPress 事件private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!(char.IsNumber(e.KeyChar) || e.KeyChar == '\b')) { e.Handled = true; } } 阅读全文
posted @ 2007-11-27 11:41 Aaron_Zhang 阅读(410) 评论(0) 推荐(0)