Administrators Farshad Mohajeri Posted January 22, 2012 Administrators Share Posted January 22, 2012 Generated PDF file is shown inside an embedded PDF viewer. You can use embedded PDF viewer to print or download the PDF doc. Quote Link to comment Share on other sites More sharing options...
IdrisZZ Posted January 22, 2012 Share Posted January 22, 2012 You simply type IP address of the server in the client browser: For example: http:://192.168.1.100:8077 What the UniGUI project.exe is execute or RUN on Server ? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 22, 2012 Administrators Share Posted January 22, 2012 You simply type IP address of the server in the client browser: For example: http:://192.168.1.100:8077 What the UniGUI project.exe is execute or RUN on Server ? See our deployment options: http://www.unigui.com/doc/online_help/index.html?deployment.htm Quote Link to comment Share on other sites More sharing options...
IdrisZZ Posted January 22, 2012 Share Posted January 22, 2012 You can't. A VCL dialog can't be displayed in web mode. uniGUI doesn't provide a mean to achieve this. If you need such a dialog then you must design it yourself using uniGUI controls. What is component unigui controls for design report displayed in web mode ? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 22, 2012 Administrators Share Posted January 22, 2012 You can't. A VCL dialog can't be displayed in web mode. uniGUI doesn't provide a mean to achieve this. If you need such a dialog then you must design it yourself using uniGUI controls. What is component unigui controls for design report displayed in web mode ? General uniGUI components: UniButton, UniEdit,..etc. uniGUI doesn't offer components for a specific purpose, just general components which you can use for any purpose. Quote Link to comment Share on other sites More sharing options...
IdrisZZ Posted January 24, 2012 Share Posted January 24, 2012 Why dialog print to pdf view on server when project run to client ? Thank's Quote Link to comment Share on other sites More sharing options...
IdrisZZ Posted January 24, 2012 Share Posted January 24, 2012 Show dialog := False; it's OK But, in client not view on UniURLFrame1. Just download file Quote Link to comment Share on other sites More sharing options...
docjones Posted January 24, 2012 Share Posted January 24, 2012 But, in client not view on UniURLFrame1. Just download file you must install pdf viewer on client, like acrobat reader or foxit. Quote Link to comment Share on other sites More sharing options...
IdrisZZ Posted January 25, 2012 Share Posted January 25, 2012 I has been install pdf viewer on client, but can't display to UniURLFrame1. Thank's Quote Link to comment Share on other sites More sharing options...
estor485 Posted May 11, 2012 Share Posted May 11, 2012 Hi! Im using UniGui, the most recent version, in the application I'm using ReportBuilder v14 Enterprise, i save the PDF in "localhost:8077/Reportes/Report.PF" and in a new form i use the UniURLFrame and assign the URL property, when i run the application in localhost i can see the PDF, but the page freezes and can't save the file, when i run the application in other PC i can't see the page, any idea? Quote Link to comment Share on other sites More sharing options...
thecrgrt Posted May 12, 2012 Share Posted May 12, 2012 I has been install pdf viewer on client, but can't display to UniURLFrame1. Thank's If you are using Adobe Reader, I recommended to reinstall an application. Quote Link to comment Share on other sites More sharing options...
thecrgrt Posted May 12, 2012 Share Posted May 12, 2012 This is an example to apply FastReport to UniGUI framework. To prevent dialogs showing at server you should be set the following properties of TfrxReport EngineOptions.SilentMode = True EngineOptions.NewSilentMode = simSilent and for TfrxPDFExport ShowDialog = False ShowProgress = False OverwritePrompt = False Example define the following components frxRepData: TfrxReport; frxPDFExport: TfrxPDFExport PrintURLFrame: TUniURLFrame; Code: var _LFile: String; begin ... // The following 5 lines below could be set at design time frxRepData.EngineOptions.SilentMode := True; frxRepData.EngineOptions.NewSilentMode := simSilent; frxPDFExport.ShowDialog := False; frxPDFExport.ShowProgress := False; frxPDFExport.OverwritePrompt := False; frxRepData.DataSet := cdsMiscDataSet; if (cdsMiscDataSet.Active) then cdsMiscDataSet.Close(); cdsMiscDataSet.CommandText := 'SELECT * FROM XXX_DATA'; frxReport.LoadFromFile(UniServerModule.FilesFolderPath + 'some_report.fr3', False); cdsMiscDataSet.Open(); if (not cdsMiscDataSet.IsEmpty) then begin // pass True to clear a previous generated report. // If you need to merge a variant of reports set it to False frxReport.PrepareReport(True); _LFile := 'payment_' + FormatDateTime('hhmmss.zzz', Now()) + '.pdf'; frxPDFExport.FileName := _LFile; frxPDFExport.DefaultPath := UniServerModule.LocalCachePath; try frxReport.Export(frxPDFExport); PrintURLFrame.URL := UniServerModule.LocalCacheURL + _LFile + '#'; except ShowMessage('Error, Can not generate printing documents to PDF format.'); end; end else ShowMessage('There are no pages to generated printing.'); end The above example write on the fly at the post time, sorry if there are some error. Quote Link to comment Share on other sites More sharing options...
sagt3k Posted May 13, 2012 Share Posted May 13, 2012 If it helps, this is the code I use without problems UNIGUI + FASTREPORT Var Report:TFrxReport; frxDataset:TfrxDBDataset; PDFExport:TfrxPDFexport; Begin Try frxDataset:=TfrxDBDataset.Create(Nil); frxDataset.DataSet:=UniMainModule.DatasetQuery; frxDataset.Name:='frxDataset'; Report:=TFrxReport.Create(Nil); Report.DataSet:=frxDataset; Report.DataSetName:='frxDataset'; Report.LoadFromFile(ReportsPath+'\report.fr3'); Report.PrepareReport(True); except End; FileName:='xyz.pdf'; PDFExport:=TfrxPDFexport.Create(Nil); PDFExport.FileName:=TempPath+'\'+FileName; PDFExport.ShowDialog:=False; PDFExport.ShowProgress:=False; Report.Export(PDFExport); UniLabel10.Visible:=True; UniLabel10.Caption:='<a href="'+FileName+'" target=new>"Download Report!!"</a>'; End; Quote Link to comment Share on other sites More sharing options...
estor485 Posted May 16, 2012 Share Posted May 16, 2012 Hi! Im using UniGui, the most recent version, in the application I'm using ReportBuilder v14 Enterprise, i save the PDF in "localhost:8077/Reportes/Report.PF" and in a new form i use the UniURLFrame and assign the URL property, when i run the application in localhost i can see the PDF, but the page freezes and can't save the file, when i run the application in other PC i can't see the page, any idea? This is my solution : Report.TextFileName := UniServerModule.LocalCachePath+StringReplace(UniMainModule.nombre, ' ','',[rfReplaceAll])+'.pdf'; //assign name and route to file Report.Print; // send a message to report for print the file ReporteForm.UniURLFrame1.URL := UniServerModule.LocalCacheURL+StringReplace(UniMainModule.nombre, ' ','',[rfReplaceAll])+'.pdf'; //Assign the route to url property of the uniurlframe reporteform.show; // and display the report in new form, in new form only contain an UniURLFrame, I'm testing in Opera, Chrome and IE9 I hope that someone would be useful. Quote Link to comment Share on other sites More sharing options...
estor485 Posted May 16, 2012 Share Posted May 16, 2012 Note: the report must be inactive all dialogs, example printdialog, search dialog... 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.