Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can objects be sized/positioned by formula

Status
Not open for further replies.

vb6novice

Programmer
Sep 23, 2002
288
US
In CR XI, I plan to mimic the MS Project Gantt chart using a horizontal bar (text box perhaps) in the detail. The position and width of the horizontal bar will need to change with each record. Is that possible in CR?

The record set has 1 record for each person who will work on a job - there will be many jobs in the report. The fields included are:
- Job Number
- Worker's name
- Estimated hours
- Job start date

Records will be grouped by Worker's name.

For each worker, I want the detail to be a horizontal bar to represent the work period, starting from an x position which represents the job's start date and extending to the right an amount proportional to the number of days the job will take to complete (which will be a calculaton of Estimated hours divided by a fixed working hours per day).

The report will have parameters to allow users to specify a date range. The width of each horizontal bar will depend on the days needed to complete the job divided by days in date range.

Thanks for any help.

 
Nothing can really be dynamically changed horizontally within Crystal.

There are cheats, however they might be unappetizing/cumbersome.

One would be to estimate the number of characters needed to fill the text object with a given character, and appropriately padding it at the beginning with spaces. Note that you migth receive a different look depending upon the printer and font used across systems.

I would opt for having X number of days as seperate formulas touching each other and then conditionally filling each depending upon the days. A pain to initially set up, but it should provide the best look and feel across printers.

There are gantt charts available within Crystal.

-k
 
k,

I had already thought of your suggestion (to fill the box with a number of characters appropriate to the required length of the bar) but was hoping for a more 'elegant' solution.

The Gantt charts within CR don't behave like I want them to(or perhaps I just don't know how to make them behave the way I want them to).

I'll consider trying your suggestion.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top