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

out of system resources

edited December 2012 in RAP
Hi,

in a prior version (delphi7, reportbuilder 9.02) a had a report on which
i created images in the afteropendatapipelines in the report (dade).

I created the images in the report like this:

var
tempImage:tppImage;
begin
tempImage:= tppimage.create(Detail);
tempImage.Autosize:=true;
tempImage.band := Report.DetailBand;

in the version we migrated to delphi (XE2 reportbuilder 14.06) this
report does not work anymore.
i debugged it using showmessage from the utility functions

When the tempimage.band is set i get a "out of system resources" error.
Sometime: "Canvas doesnot allow drawing" IF i dont get an error the
button bar height is screwed up and uses the whole page.

Can you give me a hint where to look?

kind regards

Ruud

Comments

  • edited December 2012
    Hi Ruud,

    Does this happen with every report and every image you try to create
    this way? Does it occur just when previewing or also when printing or
    exporting to file? As a test, try setting
    Report.PreviewFormSettings.SinglePageOnly to True and see if that helps
    the problem.

    If you create a simple example of an empty report that loads this image,
    do you still get the problem? If so, please send me the template and
    image and I'll take a look at what is going on. Send the files to
    support@digital-metaphors.com.

    Best Regards,

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

    thanks for looking into this.

    No, it does not happen with every report.
    Yes, it only happens when previewing. When i print directly there is no
    problem. The error only occurs when i open the exporer and choose
    preview. If i print first then preview works also.

    Changing Report.PreviewFormSettings.SinglePageOnly makes no difference.

    I will mail you the report and include some screen prints.

    kind regards

    Ruud





This discussion has been closed.