What does the code do? is it for shououtput purposes only? if so, you just ignore the code and manage the visibility in the rdlc layout.
If it is businness logic (e.g. calculate something), you have to move the code somewhere else (maybe in the onaftergetrecord or in the onpostdataitem).
Be careful: there's almost no chance the code will work as is, because the dataset logic of the rdlc is completely different from how you develop a classic report.
Businness logic in the sections is BAD, anyway...you are going to improve the solution by moving the code and refactoring it, cheers
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
Answers
If it is businness logic (e.g. calculate something), you have to move the code somewhere else (maybe in the onaftergetrecord or in the onpostdataitem).
Be careful: there's almost no chance the code will work as is, because the dataset logic of the rdlc is completely different from how you develop a classic report.
Businness logic in the sections is BAD, anyway...you are going to improve the solution by moving the code and refactoring it, cheers
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog