Dynamically position time bars in a panel (shift plan with 96 time segments)
Posted: Tue May 13, 2025 3:40 pm
Hello everyone,
I am using Stimulsoft (version 2019) and would like to display a full 24-hour day timeline (from 06:00 to 06:00 the next day) as a horizontal scale, divided into 96 segments of 15 minutes each – similar to a shift plan.
My goal is to show a colored bar for each shift (e.g., 06:00–18:00 or 08:00–16:00) positioned at the correct place inside a panel. The position and width of the bar should be dynamically calculated based on the start and end times.
Here are my questions:
1. How can I dynamically position and size a shape element or text field in the report based on time values?
2. Is there a recommended way to create the 96 time units as a reference grid – or is it better to calculate the positions based on the time values alone?
3. Does anyone have an example of how to display multiple shifts at the same time (e.g., stacked or side by side in a panel)?
I have implemented a similar solution in Crystal Reports before and would like to achieve something comparable in Stimulsoft now.
Thank you very much for any advice!
Best regards,
Steffen
I am using Stimulsoft (version 2019) and would like to display a full 24-hour day timeline (from 06:00 to 06:00 the next day) as a horizontal scale, divided into 96 segments of 15 minutes each – similar to a shift plan.
My goal is to show a colored bar for each shift (e.g., 06:00–18:00 or 08:00–16:00) positioned at the correct place inside a panel. The position and width of the bar should be dynamically calculated based on the start and end times.
Here are my questions:
1. How can I dynamically position and size a shape element or text field in the report based on time values?
2. Is there a recommended way to create the 96 time units as a reference grid – or is it better to calculate the positions based on the time values alone?
3. Does anyone have an example of how to display multiple shifts at the same time (e.g., stacked or side by side in a panel)?
I have implemented a similar solution in Crystal Reports before and would like to achieve something comparable in Stimulsoft now.
Thank you very much for any advice!
Best regards,
Steffen