It's already your second thread with name "SSRS with RDP" - please try to use more descriptive titles.
And in this case, your compilation error doesn't actually have anything to do the with reports. You could write the same code (and the same error) anywhere else (such as in a form), so the title is actually misleading. It doesn't really help other users when navigating in this forum.
To address your problem, first you have to learn fix compilation errors before running your code. You see exactly where you have a syntax, so don't waste trying to fix something else. I guess that the datatype doesn't exist in your AX.