jahlxx Posted April 13, 2016 Posted April 13, 2016 Hi. this procedure works in standalone but don't work in ISAPI: procedure Tfform.UniBitBtn2Click(Sender: TObject);begin if lib.field('party_t', 'party_id', inttostr(lib.x), 'area') = '1' then proc_1 else proc_2;end; In ISAPI, never calls to procedure proc_1 and / or proc_2. I've tested, and the condition is evaluated correctly, but don't executes any procedure. Could be a bug? Thanks. Quote
jahlxx Posted April 13, 2016 Author Posted April 13, 2016 Hi. Perhaps, an important detail. I work with apache 2.4 in a windows 7 machine. The app, in standalone version, works with no problem, but in ISAPI not. Is strange. Quote
ZigZig Posted April 13, 2016 Posted April 13, 2016 What is your "lib" object, where is it created? Quote
jahlxx Posted April 13, 2016 Author Posted April 13, 2016 is a unit. a .pas file with some functions and procedures that I use in other forms. the compiler is ok, and works in standalone server. Quote
jahlxx Posted April 14, 2016 Author Posted April 14, 2016 hi. ahy idea about this? someone have a isapi app with apache 2.4 under windows? thanks. Quote
jahlxx Posted April 14, 2016 Author Posted April 14, 2016 Hi. I've mounted a new server, with apache 2.2 (as in unigui's documentation). The same result. Don't work in isapi mode, but yes in standalone server mode. I don't know where could be the problem. Some help please. Quote
bugra Posted April 14, 2016 Posted April 14, 2016 It's probably because ISAPI permission restriction. Check all permission you need. Quote
mika Posted April 14, 2016 Posted April 14, 2016 It seems to me that bug is most likely in proc_1, proc_2 or both. How you have ensured that execution reacher to your evaluation? If evalution is actually processed, either proc_1 or proc_2 will be executed and bug must be in either of those procs. They either do nothing or they fail silently. Quote
jahlxx Posted April 14, 2016 Author Posted April 14, 2016 OK. I've isolated the problem. The issue is in this line of code: form1.rpt.QRPrinter.ExportToFilter(tqrPDFDocumentFilter.Create(xr)); The application don't raise any error in ISAPI mode. But it works ok in standalone server mode, and that's extrange for me. Quote
mika Posted April 15, 2016 Posted April 15, 2016 Check path / filename you're using to export PDF file. Quote
jahlxx Posted April 18, 2016 Author Posted April 18, 2016 ok. I've checked, and everythig is ok. The export path is ok. I don't know why it not works in isame mode but yes works in standalone server mode. Quote
Administrators Farshad Mohajeri Posted April 18, 2016 Administrators Posted April 18, 2016 Maybe you are exporting to a path where you don't have write permission. Quote
jahlxx Posted April 18, 2016 Author Posted April 18, 2016 is reviewed. I'm exporting to c:\temp, with all permissions for all users, in the server, and don't work. The extrange for me is that works in standalone server mode, but not in isapi mode (with apache under windows). Quote
jahlxx Posted April 19, 2016 Author Posted April 19, 2016 Hi again. I've mounted a clean machine, with IIS7 instead of apache, with the same result. I don't know where could be the error. I think there is no error, because in standalone server works ok. Quote
jahlxx Posted April 19, 2016 Author Posted April 19, 2016 in isapi mode don't work, an after a few seconds, appears the error: Invalid session or session Timeout. perhaps, this can clarify where is the problem. this happens in apache and in IIS. thanks. Quote
ZigZig Posted April 19, 2016 Posted April 19, 2016 Could you please post a full project (in a zip file), so that we can understand your issue? Quote
jahlxx Posted April 19, 2016 Author Posted April 19, 2016 I'll try, but is difficult. you'll need qr. Quote
Administrators Farshad Mohajeri Posted April 19, 2016 Administrators Posted April 19, 2016 I'll try, but is difficult. you'll need qr. QuickReport? Quote
Administrators Farshad Mohajeri Posted April 20, 2016 Administrators Posted April 20, 2016 uniGUI and QuickReport compatibility is under question. Quote
jahlxx Posted April 20, 2016 Author Posted April 20, 2016 ok, but works in standalone server mode. in isapi, the report in generated. the problem is the export to pdf. Quote
jahlxx Posted April 20, 2016 Author Posted April 20, 2016 I've been making some tests with synpdf library. After generating the report, I generate a pdf file using that library. Now it works in standalone mode and in isapi mode. I prefer to use the standard quickreport export to pdf, but right now, this solution could be a workaround for me. The synpdf library, not allways render the pdf correctly (some lines, shapes o text alignment). I will work with synpdf until the problem with QR in isapi mode is solved. And I insist on in standalone server, the standard report export works with any problem. Thanks. Quote
KingOrmon Posted April 11, 2017 Posted April 11, 2017 Did you get runnig synPDF over ISAPI ? How ? Quote
delagoutte Posted April 12, 2017 Posted April 12, 2017 i don't use quickreport but everytime, i have a thing that's working on standalone and not in isapi, this was because there is a visual interface. Exemple : if during printing, you have a progress bar that is displayed by your quickreport component so it's could work on standalone because it is a vcl app but it can't work on isapi because isapi could not display this progress bar. The issue is to disable all option on quickreport that can display any things. if you can't change this options it think you'll need change component. Quote
KingOrmon Posted April 12, 2017 Posted April 12, 2017 I don´t use quickreport, I am asked for SynPDF over ISAPI... 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.