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

AV'S on loading sectionstyle subreports from template: EReadError 'Error reading ppSummaryBand.Align

edited October 2008 in General
Hi

Using RB11 we get AV's on loading sectionstyle subreports from template.

ppChildReportDefault is a sectionstyle subreport from a main report.

How do we fix this?


AMemoryStream := TMemoryStream.Create;
try
AMemoryStream.LoadFromFile('C:\Projects\RB11\DOCUMENT.RTM');

ppChildReportDefault.Template.LoadfromStream(AMemoryStream);
finally
FreeAndNil(AMemoryStream);
end;

Comments

  • edited October 2008
    Filip:

    Without knowing more, you might try adding the following line:

    AMemoryStream.Position := 0;

    Ed Dressel
    Team DM
This discussion has been closed.