Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic shapes in a report
Message
From
19/02/2014 09:38:56
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01594564
Message ID:
01594659
Views:
70
>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)
.
&&on the fly manipulation of report content 
thisform.myDetailBand.MyShape.left = thisform.myDetailBand.MyShape.left - 50   &&move to the left
thisform.myDetailBand.MyShape.left = thisform.myDetailBand.MyShape.left + 50   &&move to the right 
.
.
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
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform