Guest Posted March 6, 2011 Share Posted March 6, 2011 Message from: "goodeboy" unigui in how to use the FastReport Report Control? not demo it? . Quote Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2011 Author Share Posted March 7, 2011 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? > . Quote Link to comment Share on other sites More sharing options...
joriolm Posted July 30, 2011 Share Posted July 30, 2011 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. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 30, 2011 Administrators Share Posted July 30, 2011 Correct usage: frxPDFExport1.FileName := UniServerModule.LocalCachePath + rptfile+'.pdf';. . . . UniURLFrame1.URL := UniServerModule.LocalCacheURL + rptfile+'.pdf'; Quote Link to comment Share on other sites More sharing options...
joriolm Posted July 30, 2011 Share Posted July 30, 2011 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, 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. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 1, 2011 Administrators Share Posted August 1, 2011 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, 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 Quote Link to comment Share on other sites More sharing options...
adan200 Posted October 1, 2011 Share Posted October 1, 2011 Please check http://forums.unigui.com/index.php?/topic/1193-create-pdf-and-show/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.