12-02-2021 12:40 PM
Hi everyone,
I am a beginner of DIAdem, and I would like to modify some areas in the REPORT page when I click the button "Transfer to REPORT" in View by using script. I don't want to delete boxes manually every time, so generate the correct report is saving lots of time. I have a template of View user interface which include these two boxes, please see the attached file.
I get two questions:
1. Remove the dialog box (user interface) and text box (rectangle box with the number 1,2,3.....) automatically after clicking the button "Transfer to REPORT"
2. Resize and enlarge the graph correctly to fit the report page automatically
I found a method to remove the objects in report, but I'm not sure about that.
Object.Remove(NameOrIndex)
Could you please help me to solve the problem?
Thank you so much
05-02-2022 06:36 AM
Call Report.ActiveSheet.Objects.Remove("objectName")
The script below will show you all of the report object names:
http://www.savvydiademsolutions.com/report.php?topic=Write-all-Report-objects-to-the-LogFile