>Hi All,
>
>In vfp9 sp2 it is possible to dynamically set the Height and Width of a shape in a report. However, I also want to dynamically set the Left. Any suggestions?
Hi Peter
You can probably do some of usual trickery to get around this FRX limitation, however if you need more of dynamic features you
might wanna take a look at
www.report-sculptor.com Once you implement RS within your environment, you can use form/form objects to create truly OOP dynamic reports. Within this paradigm, you directly control firing of report bands (form containers in this case) where you can use standard OOP approach to manipulate objects at run time.
So moving that shape of yours would look something like ;
.
oRS.FlashContainer(thisform.myGroupHeaderBand)
.
thisform.myDetailBand.MyShape.left = thisform.myDetailBand.MyShape.left - 50
thisform.myDetailBand.MyShape.left = thisform.myDetailBand.MyShape.left + 50
.
.
oRS.FlashContainer(thisform.myDetailBand)
.
.
See attached picture to get better idea how does work reality. It is demo sample modeled after real life report which has completely non standard flow/grouping.
Hence free report design / flow being one of the main ideas of RS.
HTH
Sergio