farshadmohajeri / extpascal

Automatically exported from code.google.com/p/extpascal
49 stars 28 forks source link

What about Reports? #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey Friends, What about Reports in the Intraweb?
ExtPascal uses WebApplication.send file or something?
I need to show a report with fastreport in the clientside.

procedure TRaFrmMain.BtnImprimirClick(Sender: TObject);
 Var
 PDF,Nom:String;
begin
 Nom:='sw';
 PDF:='C\Rep\';
 FrxPDF.FileName:=PDF;
 FrReport.PrepareReport(True);
 FrReport.Export(FrxPDF);
 WebApplication.SendFile(PDF, True , 'application/binary', Nom + '.pdf');

Tanx

Original issue reported on code.google.com by delphiic...@gmail.com on 8 Apr 2010 at 5:59

GoogleCodeExporter commented 9 years ago
use:

DownloadFile(Nom + '.pdf');

See: ExtPascalSamples at 
http://extpascal.call.inf.br/cgi-bin/extpascalsamples.cgi

Original comment by wanderla...@gmail.com on 13 Apr 2010 at 11:55