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

Cannot generate report

edited May 2008 in General
D5 and RB7.
The query has no problem after calling Query.Open
When I call Report.Print I got the run time error
'Cannot generate report'.

I used to generate report but only delete a ppVariable from the detail band.
I found nothing to do with this ppVariable from the source code.

Comments

  • edited May 2008
    Hi,

    This error can be caused by a number of things. If you add RBuilder\Source
    to your library path (and remove RBuilder\Lib) where does the exception
    occur if you trace into the RB source? If you add the variable back to the
    report does it run correctly? Try creating a similar or identical report
    from scratch and see if you get the same issue.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2008
    Hi,

    Now I revoked back to my previous version of the .rtm file.
    I got 500 records and defined 10 fields of each row.
    It showed all fields value on the first row. It only showed some of the
    fields from second row onwards, the other fields are empty. I definitely
    sure the empty fields have values.


  • edited May 2008
    Hi,

    One more piece of info about the ppVariable.
    If I set the DataType of this TppVariable to dtString, then the report
    cannot be generated (the report is NOT blank but grey, and also NO error
    message).
    If I set it back to dtInteger, then it goes back to the original PARTIAL
    printing.

  • edited May 2008
    If I understand correctly, the original report does not function correctly
    either? Are you able to recreate this with a simple report? Which exact
    version of ReportBuilder are you using? Be sure you have the latest release
    for RB 7 (7.04) installed. If you still get the error, you might try
    downloading a copy of the latest version of ReportBuilder for a newer
    version of Delphi and test with that. We have made hundreds changes and
    fixes since RB 7.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.