We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

possibility to stop report rendering

Thread ID:





130565 May 18,2017 09:40 AM UTC May 19,2017 11:21 AM UTC Report Platform 1
Tags: Report Designer
Gregory Kohle
Asked On May 18, 2017 09:49 AM UTC

Hi,is there a way to stop the report rendering in the custom code when a parameter validation fails?I tried using Err.Raise(6, Report) but this results in an error.If I just use Err.Raise(6) then no error is thrown but there is also no action from this line of code.Thanks. Regards, Patrick

Vinoth Srinivasan [Syncfusion]
Replied On May 19, 2017 11:21 AM UTC

Hi Patrick, 
Thanks for contacting Syncfusion Support. 
Currently, we don’t having a support for stop the report rendering based on the parameter validation using custom code. However, we can achieve this by using “Visibility” of report items. To achieve this follow the below steps. 
1) add a textbox to the report that is visible only if validation fails.  This text box you can use to display an error message to the user. 
2) put the rest of your report in a rectangle and set it to be hidden if there is a parameter validation error. So the report will not render in report viewer if there is validation error. 
We have prepared a sample report based on this and it can be downloaded from the following location. 
Vinoth S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon