惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
Blog — PlanetScale
Blog — PlanetScale
B
Blog
GbyAI
GbyAI
爱范儿
爱范儿
月光博客
月光博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
腾讯CDC
MyScale Blog
MyScale Blog
V
Visual Studio Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - 振河

SQL Server 2005 Reporting Services动态设置数据源 在windows 2008 server 中Password must meet complexity requirements VS2005 中控件的 GenerateMember 属性 WCF 安全之自定义的用户名/密码身份验证 Visual Studio 2008 开发WPF应用程序系列文章——window class 之间的继承 Visual Studio 2005 开发WPF应用程序系列文章——什么是WPF 配置 SQL Server 2005 远程调试存储过程 (转载) C# Office编程——Word 错误类型:“系统找不到 Microsoft.Office.Interop.Word" Reporting Service 在文本框中换行的问题 数据库范式设计 JavaScript 用DIV模拟弹出窗口并跟随窗体滚动 SQL Server 2000 占内存居高不下可能的原因及其解决方法 轻松移除VS2005解决方案中的VSS绑定信息 使用ComponentOne 中 C1TrueDBGrid 实现Master-Detail Grid Reporting Services 运行时设置报表的Page Header的大小 朋友,5.1节日快乐 SQL Server 2005 Reporting Services 报表中随意格式化日期的方法 SQL Server 2005 Reporting Services的一个bug及其解决方法 SQL Server 2005 Reporting Services 在排版上存在的一个问题
SQL Server 2005 Reporting Services 使用C#类库中的函数方法
振河 · 2007-03-19 · via 博客园 - 振河

1 首先准备一个普通的类库,里面有Reporing 需要的方法,方法的定义如下:

            public static string 函数名称(参数)
            {}

2 把类库编译成一个dll

3 把dll拷贝到一下三个目录:

C:\Program Files\Microsoft SQL Server\MSSQL.4\Reporting Services\ReportManager\Bin
C:\Program Files\Microsoft SQL Server\MSSQL.4\Reporting Services\ReportServer\bin
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies

4 在报表中使用自定义函数:
         Visual Studio中找到Report menu——〉Report Properties。。。——〉References 添加引用

5 使用Code:名称空间.类名称.函数名称(参数)

6 OK