Hi! I'm trying to draw lines across a model canvass through report scripting and I need to get the actual width and height of the canvass to set my line endpoints. I tried
model.Graphic(false, false, locale).getWidth(Constants.SIZE_PIXEL)
to get the width but it only captures the width of the picture representation of the model. The resulting width fell short of the actual width of the model canvass. Are there any ways or methods to get the actual height and width of the model template /canvass through Report Scripting?
Hi Fred,
I already tried that before but just like the getWidth(...) function, the dimensions that were returned fell short of the actual canvass dimensions. I was really aiming for plotting grid lines independent from the positioning of any items drawn on it. My aim was just to draw the line even before any objects are inserted into the model... For now, I just relied on some running width computations on how the lines will be drawn. Thanks for the advice though. Happy weekend!!