Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp 9 change group start programmatically
Message
From
14/03/2013 10:25:40
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01568131
Message ID:
01568361
Views:
152
>Hi Srdjan :
>
>good morning:
>
>I created a report with the report designer with a set of data. The report works fine in design mode and runtime.
>
>In the report designer, I enter to DataGrouping of Report Menú, in tab report propierties I see a checkbox titled "Reprint group header on each page".
>if this checkbox is checked, each group is printed on each page, if this checkbox is not checked, all data sets are printed on one page .
>
>My question is how to set programmatically (without using the report designer) this feature to print new groups in different pages or printing groups on the same page.

If you want your setting (print on new page or not) for the entire report run, then easiest thing to do would be to make two
frx-es preset to desired behaviors. Thenbased on user choice you run one or the other.
Perhaps easier then hacking frx. (Although that can be done as well)

Update:
See FRX field PAGEBREAK in frx structure for tips on hacking frx.
(Third picture attached!)
Report structure can be BTW studied if you run
report form ( home()+ 'tools\Filespec\'  +  '60frx1.FRX' ) to printer preview
report form ( home()+ 'TOOLS\FILESPEC\'  +  '60FRX2.FRX') to printer preview
However if you want to run group on new page based on some data values (some groups to start on new page and some not)
or based on remaining space on page, then you might want to have a look at

www.report-sculptor.com

Once you implement RS, you have more then one way to build reports besides using FRX designer. You can build report using forms and form controls (with form designer) and then run/control reports from inside your own code. See report sample #07 and up in RS demo project for more ideas. (Also see pics attached here)

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