有没有办法在 C# 中执行 SSRS 表达式
我正在开发一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它是 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#.
我相信这些报告使用的东西更像是 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.
最简洁的答案是不。 我的 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