Jump to content

ISAPI app


jahlxx

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

 

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 11 months later...

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...