mikelustosa Posted September 12, 2017 Share Posted September 12, 2017 I have the following routine to generate and view pdf files: ReportName := 'report_' + FormatDateTime('ddmmyy_hhmmss', Now) + '.pdf'; MainModule.UniMainModule.rel_indicadoresEnfermeiro.AllowPrintToFile := True; MainModule.UniMainModule.rel_indicadoresEnfermeiro.ShowPrintDialog := False; MainModule.UniMainModule.rel_indicadoresEnfermeiro.DeviceType := dtPDF; MainModule.UniMainModule.rel_indicadoresEnfermeiro.TextFileName := UniServerModule.LocalCachePath + ReportName; MainModule.UniMainModule.rel_indicadoresEnfermeiro.Print; UniURLFrame1.URL := UniServerModule.LocalCacheURL + '/' + ReportName; In the ISAPI project running .exe, the PDF is displayed in the browser normally. But when I publish the DLL in IIS, the system simply hangs and displays nothing. I'm using report builder and IIS 6, Delphi Seatle and UNIGUI Can anybody help me? Quote Link to comment Share on other sites More sharing options...
epos4u Posted September 12, 2017 Share Posted September 12, 2017 Hi, try MainModule.UniMainModule.rel_indicadoresEnfermeiro.AllowPrintToFile := False; i had same problem, but all working after changing settings in report builder Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 12, 2017 Author Share Posted September 12, 2017 Hello! I did what you said. But the same problem continues, it does not display the PDF when I publish to IIS. Do you remember if there is any other configuration in rbuilder that should be wrong? Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 13, 2017 Author Share Posted September 13, 2017 UP Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 13, 2017 Author Share Posted September 13, 2017 I noticed that with the .EXE, cache is generated. But already with the DLL does not generate cache, so the PDF is not displayed? Quote Link to comment Share on other sites More sharing options...
billyChou Posted September 13, 2017 Share Posted September 13, 2017 IIS cann't call Exe to generate PDF , refer Demos\Desktop\FastReport sample. Demos\Desktop\FastReport - MultiReport can Compile in IIS generate PDF. Quote Link to comment Share on other sites More sharing options...
epos4u Posted September 13, 2017 Share Posted September 13, 2017 modal preview & ModalCancelDialog = false; showCancelDialog and showprintDialog Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Share Posted September 13, 2017 I'm using report builder and IIS 6, Delphi Seatle and UNIGUI UniGUI edition & version? Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 13, 2017 Author Share Posted September 13, 2017 UniGUI edition & version? FMSoft uniGUI Complete Professional Edition v1.0.0.1397 Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 13, 2017 Author Share Posted September 13, 2017 IIS cann't call Exe to generate PDF , refer Demos\Desktop\FastReport sample. Demos\Desktop\FastReport - MultiReport can Compile in IIS generate PDF. But does this demo generate the dll? I need to generate the dll, publish to IIS and generate the PDF with Report Builder and display in the browser Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Share Posted September 13, 2017 FMSoft uniGUI Complete Professional Edition v1.0.0.1397 The cracked version? Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 13, 2017 Author Share Posted September 13, 2017 modal preview & ModalCancelDialog = false; showCancelDialog and showprintDialog I set it up your way. Now it loads the UniURLFrame1.URL: = UniServerModule.LocalCacheURL + ReportName. But the main screen appears in place of the PDF. What madness! kk Look: www.softmaisbrasil.com.br/imagem.jpg Quote Link to comment Share on other sites More sharing options...
mikelustosa Posted September 13, 2017 Author Share Posted September 13, 2017 The cracked version? Demo version. I'm almost giving up using unigui. Does not show the PDF in IIS! the unigui repeats the main screen, instead of displaying the PDF file. Look: With DLL: www.softmaisbrasil.com.br/imagem.jpg With EXE:(it's right) www.softmaisbrasil.com.br/imagem2.jpg for both it's the same routine: ReportName := 'report_' + FormatDateTime('ddmmyy_hhmmss', Now) + '.pdf'; MainModule.UniMainModule.rel_indicadoresMedico.AllowPrintToFile := false; MainModule.UniMainModule.rel_indicadoresMedico.ShowPrintDialog := false; MainModule.UniMainModule.rel_indicadoresMedico.DeviceType := 'PDF'; MainModule.UniMainModule.rel_indicadoresMedico.ArchiveFileName := UniServerModule.LocalCachePath + ReportName; MainModule.UniMainModule.rel_indicadoresMedico.Print; UniURLFrame1.URL := UniServerModule.LocalCacheURL + ReportName; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Share Posted September 13, 2017 I set it up your way. Now it loads the UniURLFrame1.URL: = UniServerModule.LocalCacheURL + ReportName. But the main screen appears in place of the PDF. What madness! kk Look: www.softmaisbrasil.com.br/imagem.jpg This is not trial edition. You are using a pirated copy. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Share Posted September 13, 2017 I'm almost giving up using unigui. Yes you are free to give up on uniGUI because what you are using is a pirated copy. Why do you think that we should help you? Quote Link to comment Share on other sites More sharing options...
rencarnacion Posted September 13, 2017 Share Posted September 13, 2017 I think that as soon as you detect a user of the forum using pirated copy, should be banned immediately 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Share Posted September 13, 2017 I think that as soon as you detect a user of the forum using pirated copy, should be banned immediatelyI do so.[emoji109] Sent from my SM-N900 using Tapatalk 1 Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted September 14, 2017 Share Posted September 14, 2017 Farshad, If I were you, I'm not share trap questions info 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.