Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

BeforePrint executing on each page. PDF Doesn't

edited November 2003 in General
I have a discrepancy between my viewer and pdf file that I generate through
pragnaan.

In my BeforePrint script I set the global variable g_sumgiving to zero. I
run the report. With each record g_sumgiving is incremented the appropriate
dollar value. At the end of the report the value of g_sumgiving is only the
sum of the records on the last page. Not all the records. BeforePrint seems
to be executing on each page.

I then press my PDF button at the top and go to the last page and the value
for g_sumgiving is correct. It worked correctly in the PDF file.
BeforePrint seems to only be executing before generation of the report when
going to a PDF.

I then decided to move my initialization of the g_sumgiving variable to the
BeforeGenerate script. This caused the viewer to print correctly on the
last page. I then pressed my PDF button and g_sumgiving was doubled.
Apparently the BeforeGenerate wasn't executed with the PDF button.

Any Suggestions?

My Report is set up with Addresses and items with dollar values. The report
detail band is set to invisible. It has a groupfooterband that shows the sum
of the items. The groupfooterband has a Region that checks whether or not
the band should be visible or not depending on other globals. Those all
seem to work.

Bill Gifford

Comments

  • edited November 2003
    Sorry, Wrong newsgroup. I'll re-post this in the Server section

This discussion has been closed.