Thin Generator : Dynamically changing the position of a Shape

48 views
Skip to first unread message

Rabi

unread,
Jun 21, 2017, 3:54:39 AM6/21/17
to Thinreports

The available documentation at https://github.com/thinreports/thinreports-generator states that

Generator can dynamically:

  • change style (border, fill, visibility, position, color, font) of Shape
The given examples do not give an example of how to change the position of a shape via style, 

I am trying to dynamically change the position of a List.
Hopefully something like 
report.list(:test).style(:x, 5)
report.list(:test).style(:y, 500)

I get this error
Thinreports::Errors::UnknownShapeStyleName: The specified style name, 'x', cannot be used. The available styles are :visible

The object on which I make the syle call is of type
"#<Thinreports::Core::Shape::List::Page:0x00000006b13bd0>"

Is moving the location of a shape possible? How?

Thanks for providing a hardy reporting tool.
Thanks to the community for support.

Rabi

Reply all
Reply to author
Forward
0 new messages