Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to create multi-page report
Message
From
29/01/2007 06:21:38
 
 
To
15/11/2001 21:51:28
Eugene Kolmakov
Millennium Technologies
Vladivostok, Russia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00581891
Message ID:
01189993
Views:
26
>Thank you very much for your answer, Sergey !
>
>Why I don't want to use four reports instead ? I just don't want to make users look on 4 pages of my report sequently and print or cancel them, I need to show all data (the whole form) at one time.
>Ok, let's turn to Crystal Reports...

Hi Eugene,
For this particular report I think you should stick with Cathy's solution, since is gonna get you there faster then incorporationg CR in yr environment for this report only.

Since you are into venturing/adopting new tools, maybe you should consider purchasing XFRX tool since they support report scripting where you can write entire report in code. (Mind's eye also support scripting but I have'nt tried it)

For this kind of 'hairy' tasks I personally I use PDFL library (Martin Haluza), for which I developed rich wrapper class that produces complex multipage PDF outputs relatively easy, versus writing entire reports in pure script.
If you are interested in inner workings of such scenario, you can download
my CodeRep (see UT downloads) which hv source code for wrapping PDFL library and also samples of entire group structured reports done with it. You can almost directly reuse this code for making xff script wrappers.

IMHO, Xff Scripts are even better as concept, because resulting (xff) output
can be later previewed/printed using customisable preview form (class)
and on top of it converted to other formats. Report scripting does not get any better then that.

Back to your original problem and Cathy's solution; here is one small variation that might help you. You could create dummy table with
one field and 4 records just to force rpt engine to produce 4 pages
(Group on that field / start new group on...) then you can present
report content using whole page header or footer bands. (Or both split proportionally). You can use cursor or table fields, variables, arrays or even custom objects.properties with all info preset in there. This way placing of the report expressions will be more precise and will not be affected by unpredictable detail band size. Detail band is empty in this case.

However, Cathy's solution wld not be applicable, if report had to be
composed of 40 pages of (various) content instead of 4, so adopting
some of things/tools I described above might come handy, when you are
presented with your next 800pound gorilla report. This one is just a little monkey :)

There are menu other reporting tools written for VFP, so before shopping outside VFP world, try what is inthere and outthere for VFP already.

hth
*****************
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