Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too long time to preview a repo with multi band
Message
De
09/12/2008 03:45:48
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
09/12/2008 03:15:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01366156
Message ID:
01366157
Vues:
10
>I have a report with multiband. It works good with " SET REPORTBEHAVIOR 80", however, I don't know why it takes too long time to preview with " SET REPORTBEHAVIOR 90".
>Please, someone give me a solution. My report files can download at http://www.dutoan.vn/tam/myrepo.zip
>Thanks.

A general answer:

The time to see the preview is longer with SET REPORTBEHAVIOR 90.

This is intended.

Let me explain the way SET REPORTBEHAVIOR 80 renders first.

If you choose to preview a page it will render this page only . It will forget the last page. So everytime you move between pages, the engine has do redraw them. You can see this on huge reports. Go to loast page (this need a long time) and go one page back (again long time).
If you do this on the same report on page 2 -> 1 is much faster.

SET REPORTBEHAVIOR 90 renders all pages before showing the first one. So you have to wait until all pages are rendered. Tthen it will display predrawn pictures out of memory. It also will print out of this memory. The old version will render all pages wether you have previewed or not.

If you check the listener help closer you will find that there is a other way to preview in a way that each page is rendered at request. But this would mean that you have to do all preview work yourself (the preview that ships with VFP 9 is not designed to do it).

It will run twice depending on the occurence of _PAGETOTAL to determine the number of pages.

There are small stuff you can do depending on your report. The most is reducing the stuff the report is doing: (Counts Sums etc., every condition (Print only if condition is true) will slow down.

A resumable amount of pages might be good to. ::)

HTH

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform