I am trying to color the objects inside a model through report code. It works when the model is not open, but it showes error when the models is open in Designer.
code i used:
ObjOcc.setFillColor()
I am trying to color the objects inside a model through report code. It works when the model is not open, but it showes error when the models is open in Designer.
code i used:
ObjOcc.setFillColor()
Hello Yuan,
If the model is open in designer then it will give you error that it cant save the changes as its open at client side i.e in your designer, and report runs at server side.
You instead have to use Macro for this to change the color of occurrences, No matter if its open or close. As macro runs as a client script.
-Amol
Thanks for the reply
I understand a Macro can initiate a report script. Can a report script initiate a Macro script?
No, right now, i can't see any way to initiate Macro script from Report. But you don't need to have a report for coloring. A macro alone can do that.
Yuan Jiang Author on
Error messege:
Error while executing script:
An error occurred in the report object model. error running ObjOcc.setFillColor(); An error occurred in the report object model. Unable to save modified objects.