3

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.

Pedram
  • 6,256
  • 10
  • 65
  • 87
JasonRShaver
  • 4,344
  • 3
  • 32
  • 39

3 Answers3

4

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#.

OregonGhost
  • 23,359
  • 7
  • 71
  • 108
  • well I was close in believing it was VBScript. – TheTXI Jun 16 '09 at 14:32
  • For the record, I really hated that it is VB* when I had to create a few records in our last large app. I'm not 100% sure it is VBA, but it looks so suspiciously like VBA, and it's the internal automation language for many Microsoft products anyway. Hopefully in the future they'll switch to .NET in general :D – OregonGhost Jun 16 '09 at 14:39
  • Oh, and, VB is VB, no matter if VB6, VBA, VBS or VB.NET. I don't like any of these. That's likely the motivation of asking to switch to C# as well. – OregonGhost Jun 16 '09 at 14:41
1

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.

TheTXI
  • 37,429
  • 10
  • 86
  • 110
0

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

Rad
  • 8,336
  • 4
  • 46
  • 45