mikelustosa Posted September 12, 2017 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
epos4u Posted September 12, 2017 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
mikelustosa Posted September 12, 2017 Author 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
mikelustosa Posted September 13, 2017 Author 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
billyChou Posted September 13, 2017 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
epos4u Posted September 13, 2017 Posted September 13, 2017 modal preview & ModalCancelDialog = false; showCancelDialog and showprintDialog Quote
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Posted September 13, 2017 I'm using report builder and IIS 6, Delphi Seatle and UNIGUI UniGUI edition & version? Quote
mikelustosa Posted September 13, 2017 Author Posted September 13, 2017 UniGUI edition & version? FMSoft uniGUI Complete Professional Edition v1.0.0.1397 Quote
mikelustosa Posted September 13, 2017 Author 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
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators Posted September 13, 2017 FMSoft uniGUI Complete Professional Edition v1.0.0.1397 The cracked version? Quote
mikelustosa Posted September 13, 2017 Author 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
mikelustosa Posted September 13, 2017 Author 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
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators 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
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators 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
rencarnacion Posted September 13, 2017 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
Administrators Farshad Mohajeri Posted September 13, 2017 Administrators 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
Freeman35 Posted September 14, 2017 Posted September 14, 2017 Farshad, If I were you, I'm not share trap questions info Quote
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.