AV'S on loading sectionstyle subreports from template: EReadError 'Error reading ppSummaryBand.Align
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;
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;
This discussion has been closed.
Comments
Without knowing more, you might try adding the following line:
AMemoryStream.Position := 0;
Ed Dressel
Team DM