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

Cannot print report

edited May 2002 in General
I have created a report which displays it's preview correctly, but printing
it generates the following error:

'Cannot generate report'
'Invalid floating point operation'

The report has two group bands with two fields in each that summarize the
contents of two fields in the detail band. They are of type 'double'. I am
using a DBPipeline to connect thru a DataSource to an IBQuery component.

Any help?

Thanx,
Terry Fehr

Comments

  • edited May 2002
    Are those fields DBCalc components or are they variables? Are you doing any
    calculations on your own? If so, check to make sure that all operations are
    legal. The report is rerun when it is printed and any event handlers, if
    they exist, are refired which could cause a problem if any variables are not
    reset properly.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited May 2002
    > The report is rerun when it is printed and any event handlers, if
    not

    Thanx for the tip. I was opening the dataset in the OnBeforePrint event
    handler... I moved it to the procedure that calls Report.Print and all works
    fine now.

    Should I be opening the dataset in the DBPipeline's OnOpen event handler?

    Thanx again,
    Terry Fehr
  • edited May 2002
    You don't have to manually open the dataset as the report will do it for you
    when it needs to traverse the dataset.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.