Inject text at runtime on default location
Posted: Fri Sep 22, 2017 8:08 am
Hello,
I want to inject a vertical text at runtime (not design time) in the bottom left corner (as the one provided in attachement, that I easily created at design time).
This is my code, so far (not fully tested):
brandText = new StiText(new StiRectangle(9.6, 28, 10, 0.6), _brandText);
brandText.font = new StiFont("Arial", 8, "Point", 2);
brandText.horAlignment = 2;
brandText.vertAlignment = 3;
brandText.textOptions.angle = 90;
I don't want to depend on the x, y coordinates because I have different report sizes.
I would like to allways get something similar to the provided example
There is any method to achive that or there is any method to get the report dimensions so I can calculate te bottom left ?
PS: I also have reports with different pages with different sizes for specific use cases.
Regards,
Hugo.
I want to inject a vertical text at runtime (not design time) in the bottom left corner (as the one provided in attachement, that I easily created at design time).
This is my code, so far (not fully tested):
brandText = new StiText(new StiRectangle(9.6, 28, 10, 0.6), _brandText);
brandText.font = new StiFont("Arial", 8, "Point", 2);
brandText.horAlignment = 2;
brandText.vertAlignment = 3;
brandText.textOptions.angle = 90;
I don't want to depend on the x, y coordinates because I have different report sizes.
I would like to allways get something similar to the provided example
There is any method to achive that or there is any method to get the report dimensions so I can calculate te bottom left ?
PS: I also have reports with different pages with different sizes for specific use cases.
Regards,
Hugo.