Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

 

 

 

 

Posted

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.

Posted

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).

Posted

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.

Posted

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.

Posted

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.

  • 11 months later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...