Hi Farshad,
I have this code, from a modified Richard Wu's post version:
rptfile := 'pres1';
s := UniServerModule.LocalCachePath;
s := StringReplace(s,'\','/',[rfReplaceAll]);
FRXpres.PrepareReport(TRUE);
frxPDFExport1.Report := FRXpres;
frxPDFExport1.FileName := s + rptfile+'.pdf';
if FRXpres.Export(frxPDFExport1) then
begin
UniURLFrame1.URL := s + rptfile+'.pdf';
ShowMessage('Report in: '+s + rptfile+'.pdf');
end else
begin
MessageDlg('Error generating the report',mtError,[mbOK],nil);
end;
Why this PDF shows ok in the Frame on the exe, but in browser's ?
Should I manually set the Frame URL property with the same direction like this ? file:///d:\project\cache.... ??
Thanks in advanced.
J. Oriol M.