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.
Unfortunately, activation email could not send to your email. Please try again.

possibility to stop report rendering

Thread ID:

Created:

Updated:

Platform:

Replies:

130565 May 18,2017 05:40 AM May 19,2017 07:21 AM Report Platform 1
loading
Tags: Report Designer
Gregory Kohle
Asked On May 18, 2017 05:49 AM

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 07:21 AM

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. 
 
Regards, 
Vinoth S. 


CONFIRMATION

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.

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.

;