Board index » delphi » Attention: DDE / Delphi / ReportSmith - "Kurt Elmiger"

Attention: DDE / Delphi / ReportSmith - "Kurt Elmiger"

Hallo Delphi / ReportSmith / DDE specialist's

I develope an delphi application and use the ReportSmith to calculate and
printout reports.

My intention is as following:
In a loop I like to calculate 0..n variable couples, send the couples by DDE
to the ReportSmith, start the ReportSmith runtime and printout the different
report for every variable couple.

My problem is as following:
In my loop I can start the ReportSmith only three times. After three times the
connection between my Delphi application and the ReportSmith seems to be
closed. That means, I get maximum three reports. After that I have to stop
and start my applicatiation again that I can generate and printout the next
three reports.
Below you will find my implementation in short form:

********************************************************************************
var
   VeranNr, VeranVer: string;
begin
   .......
   Table1.First;
   repeat
      VeranNr := Table1.FieldByName('VeranNr').AsString;
      VeranVer := Table1.FieldByName('VeranVer').AsString;
      Report1.InitialValues.Add('@VeranNr = <' + VeranNr + '>');
      Report1.InitialValues.Add('@VeranVer = <' + VeranVer + '>');
      Report1.Run;
      Table1.Next;
   until Table1.Eof;
   .........
end;
********************************************************************************

If you know where the problem could be, please let me know by E-Mail.
Thank you very much for every help in this matter.

Best regards,
Kurt Elmiger from Switzerland,   E-Mail :   k...@esec.mhs.compuserve.com

 

Re:Attention: DDE / Delphi / ReportSmith - "Kurt Elmiger"


Look at the AutoUnload property setting for the ReportSmith component.

Tim

Other Threads