有没有办法在 C# 中执行 SSRS 表达式

发布于 2024-07-24 22:12:54 字数 435 浏览 13 评论 0原文

我正在开发一个 SQl Server Report Services 项目,并且我正在创建的报告需要一些自定义代码。 似乎所有表达式都必须在VB.NET中,我想如果有一种“简单”的方法可以将其切换为 C#,那将会很有帮助。

编辑:

嗯,我决定将代码移动到另一个 C# 程序集,该程序集遵循以下模式 此示例。

I am working on a SQl Server Report Services project and the report I am creating requires some custom code. It seems that all expressions must be in VB.NET and I figured if there was an 'easy' way to switch that over to be C#, it would be helpful.

EDIT:

Well, I decided to move my code to another C# assembly that follows the patterns like this example.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

耀眼的星火 2024-07-31 22:12:54

它是 VBA(Visual Basic for Applications)而不是 VB.NET,因此它不是 .NET,它是一种嵌入式脚本语言。 因此我认为没有办法切换到 C#。

It's VBA (Visual Basic for Applications) rather than VB.NET, so it's not .NET, it's an embedded scripting language. Therefore I would expect that there's no way to switch to C#.

爱,才寂寞 2024-07-31 22:12:54

我相信这些报告使用的东西更像是 VBScript(编辑:OregonGhost 说 VBA 实际上比 VBScript 更有意义),而不是 VB.NET(而且非常有限)。 我还没有看到任何将其切换到 C# 的方法,并且我希望被证明是错误的。

I believe that the reports are using something more along the lines of VBScript (Edit: OregonGhost says VBA which actually makes more sense than VBScript) than VB.NET (and very limited at that). I have not seen any way of switching it over to C#, and I would like to be proven wrong.

画▽骨i 2024-07-31 22:12:54

最简洁的答案是不。 我的 MSDN 中描述的语言并不是真正的 VB.NET,而是 Visual Basic

The short answer is no. And the language as described my MSDN is not really VB.NET, but Visual Basic

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文