Jump to content

unigui in how to use the FastReport Report Control


Guest

Recommended Posts

Message from: "Farshad Mohajeri"

 

Output your report as a PDF file then show it in a TUniURLFrame.

 

"goodeboy" wrote in message

news:IDr2GEB3LHA.3560@anaxagvs227...

> unigui in how to use the FastReport Report Control?

>

> not demo it?

>

 

 

.

 

Link to comment
Share on other sites

  • 4 months later...

Message from: "Farshad Mohajeri"

 

Output your report as a PDF file then show it in a TUniURLFrame.

 

"goodeboy" <goodeboy@qq.com> wrote in message

news:IDr2GEB3LHA.3560@anaxagvs227...

> unigui in how to use the FastReport Report Control?

>

> not demo it?

>

 

 

.

 

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.

Link to comment
Share on other sites

Correct usage:

 

frxPDFExport1.FileName := UniServerModule.LocalCachePath + rptfile+'.pdf';.
.
.
.
UniURLFrame1.URL := UniServerModule.LocalCacheURL + rptfile+'.pdf';

 

Thank you very much, Farshad, I'm a bit embarrased by this stupid question, at last I understood the difference between LocalCachePath ad LocalCacheURL.

 

I changed what you said and my PDF report is showing ok..... UniGui Rocks !!!. I come from a few years of Delphi development and I feel like in heaven, :rolleyes:

 

Can I bother you with another one ?, please, It is possible to show the FastReport Preview window ? if not, how can I export my data to a Excel file ? This will be the last feature to seek in UNIGUI to start two medium size projects.

 

Any help will be appreciated.

 

Regards

 

J. Oriol M.

Link to comment
Share on other sites

  • Administrators

Thank you very much, Farshad, I'm a bit embarrased by this stupid question, at last I understood the difference between LocalCachePath ad LocalCacheURL.

 

I changed what you said and my PDF report is showing ok..... UniGui Rocks !!!. I come from a few years of Delphi development and I feel like in heaven, :rolleyes:

 

Can I bother you with another one ?, please, It is possible to show the FastReport Preview window ? if not, how can I export my data to a Excel file ? This will be the last feature to seek in UNIGUI to start two medium size projects.

 

Preview window can't be shown on web side unless you implement your own preview Form in uniGUI.

 

You can use Fast reports export functions to export your report to excel and show it inside a UrlFrame

Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...