Embedded code in Reporting Services SQL Server 2008 R2 + Visual Studio 2010


I need to add some embedded code on my reporting services report for a SalesPackingSlip in Ax 2012 but when I add my custom Visual Basic code to the report and I close the report designed and I open it again my code is no more there so I can not use it on the expressions.


Any idea?

Where did you write the code? In a data method?


Just in the report. Something like this:

Add Code to a Report (SSRS) (section embedded code)



It doesn’t work for me either. I don’t remember any information about this feature related to AX, but it looks like it’s either not supported or broken.

I would recommend to use a data method, that works without problems.