DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to lock the position of text in X-direction in a report

Hello everyone,

 

i have the following problem. I have via script a constant as a vertical line in my report. At the constant a text is positioned at the bottom left or bottom right via eRelativePositionRightBottom or eRelativePositionLeftBottom. I want that the text in the report can be moved only vertically along the vertical line. Only in Y-direction. Horizontal in X-direction should not be possible to move it. Is there anyone who had a similar problem?

 

Thanks a lot!

 

Many Greetings

Alexander

0 Kudos
Message 1 of 3
(1,286 Views)

Hi Alexander,

 

There is no way to fix a REPORT object at a specific position or in a specific direction.

This would be a feature request.

 

Greetings

Walter

0 Kudos
Message 2 of 3
(1,277 Views)
Hello Alexander. I'm not sure what you're looking for... If the purpose is to create the label on the vertical line (i.e. to show its value), you could use just a text box, and move it to any position you need. The content (the value itself) can be gained from the code part where you create the constant. Required would be the recalculation from the axis dimensions (e.g. 0-500 Nm) into the layout dimension (0-270 mm for A3 height), and the same for the x-axis (I assume, the time). In Diadem 2019 take a look on "ConvertXAxisValueToPageXPosition" method. Greetings, Vassili
0 Kudos
Message 3 of 3
(1,223 Views)