Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#2

AW: FastReport druckt eine Seite zuviel

  Alt 22. Jun 2012, 09:38
Du lässt 2x den Bericht rendern und der besteht aus jeweils 1 Seite.

Bei mir ist 2x1=2 also müssen in dem Fall auch 2 Seiten rauskommen
Delphi-Quellcode:
Report1.Clear;
Report1.Variables.Clear;

if OpenDialog1.Execute then begin
   Report1.LoadFromFile(OpenDialog1.FilePath);
   // Report1.PrepareReport(true);

   Report1.Variables['var1'] := '''' + 'test1' + '''';
   Report1.Variables['var2'] := '''' + 'test2' + '''';
   Report1.Variables['var3'] := '''' + 'test3' + '''';
   Report1.Variables['var4'] := '''' + 'test4' + '''';

   Report1.PrepareReport(true);
   Report1.Print;
end;
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat