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

RB problems with Inherited?!

edited December 2001 in General
Hi,

I have a FORM FATHER "inherited" of reports, where in this FORM is a
TppDBPipeline and a TppReport. TppDBPipeline is linked to DataSource and
DataSource it is linked to TClientDataSet.

In TppReport exists: TppHeaderBand, TppDetailBand, TppFooterBand. In
TppHeaderBand the following components exist: 1 TppImage, 5 TppLabel, 2
TppSystemVariable and 1 TppLine.

In TppFooterBand 2 TppLabel exist.

In this same FORM these methods exist:

procedure TFrmRelPAI.ppImgLogoClientePrint(Sender: TObject);
begin


ppImgLogoCliente.Picture.LoadFromFile(FMP00001.DiretorioLogos+'\BrasaoClient
e.bmp');

end;

procedure TFrmRelPAI.ppSystmVrblPaginaRelatorioGetText(Sender: TObject;
var Text: String);
begin

Text := StrZero(StrToInt(ppSystmVrblPaginaRelatorio.Text),06);

end;

procedure TFrmRelPAI.ppLblNOME_RELATORIOGetText(Sender: TObject;
var Text: String);
begin

Text := Self.Name;

end;

procedure TFrmRelPAI.ppLblNomeUsuarioGetText(Sender: TObject;
var Text: String);
begin

Text := FMP00001.NomeUsuario;

end;

Ok. My UNIT completes it possesses 262 Lines of Programming, but, anything
else regarding RB!

My problem is:

When I create a descending FORM, and I execute this method:

procedure TFMP99990.ActnImprimirExecute(Sender: TObject);
begin

inherited;

if (ClntDtStRelPAI.Active) and (not ClntDtStRelPAI.Eof) then
begin

ClntDtStRelPAI.First;

ppRprtSelect.DeviceType := ' Screen';
ppRprtSelect.Template.FileName := FMP00001.DiretorioRTM+ ' \ '
+Self.Name+'.rtm';
ppRprtSelect.Template.LoadFromFile;
ppRprtSelect.Print;

end;

end;

RB is in LOOP and soon after it comes back me the message of: Stack
Overflow!

The same form without Inheritance, works perfectly!

Use D6/RB 6.0/DBExpress.

I thank the answers.

--
Sucess,

Anderson Haertel Rodrigues - AHR
Florian?polis - Santa Catarina - Brazil

Comments

This discussion has been closed.