I have an issue where I wish to hide/show a sub-report based on a parameter that is passed to the main report.
I can set the hidden property using an expression which will hide/show the sub-report, but what I found using SQL Profiler, is that the sub-report stored procedure is still executed, even if the sub-report is hidden.
Is anybody aware of a way to avoid this, other than changing the stored procedure itself.
If not, does anybody know the reason why the stored procedure is executed even thought the sub-report is hidden?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…