DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove DialogBox and TextBox, and resize the graph by using script

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 

Capture1.PNG

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

 

0 Kudos
Message 1 of 2
(219 Views)

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

 

0 Kudos
Message 2 of 2
(60 Views)