Reply

Width/Height DrawingView

Hi Everybody!

 

I'm new here so take easy with me! Smiley Wink

 

It can be easy or complex, but I'm looking for a way to get the Height and Width of a DrawingView.

 

My intention is, if height of DV is bigger than width, I'll rotate to landscape, else, I let in portrait.

 

Thanks for any help! Smiley Wink

 

Rafael

Rafael R. Correa | System Analyst
2 REPLIES

Re: Width/Height DrawingView

Hi Rafael,

 

DrawingView has a Range method. Have you tried using it.

 

Dim x1 As Double, y1 As Double, x2 As Double, y2 As Double
oView.Range(x1, y1, x2, y2)

This gives the size of the view in drawing units.

 

Regards,

Tushar Suradkar

Re: Width/Height DrawingView

Hi Tushar,

 

Thank you very much for your reply!

 

This solution was exactly what I want.

 

Thanks again man!

 

Best Regards,

Rafael

Rafael R. Correa | System Analyst