Error when opening a screen containing an RMChart.

Question:

When I open a screen instancing an RMChart object being configured in its OnPreShow event, the following error may occur in the script:

This happens when an RMChart is instanced on modal screens and/or used in XControls, for example. The screen opens for the first time with no issues, but when I try to reopen it, this error occurs. How can I fix this?

Solution:

To fix this, there are two possibilities:

1. Disable Viewer’s cache, setting up its CacheEnable property as False. However, this option is not recommended, because the screens may not open properly anymore, especially in the case of remote Viewers.

2. Insert a new code into OnPreShow event at the start of the script that deletes the RMChart and instances another one with the same features at the same place. Then, the remainder of the script that sets up the RMChart won’t be affected. For example:

 
Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *