Welcome! Log In Create A New Profile

Advanced

Report Error at one client only

Posted by ntnati 
Report Error at one client only
April 05, 2024 02:21PM
Hi,
very strange problem

Thie report is run tens of times at a go at all clients. On this one client it runs the first time but gives this error on the second call.


You called 'iPrintReport'.
Unable to print RPT_DeliveryNote_A4 report: another report was expected for printing. Possible reasons:
- Attempt to print a nested report while the main report has not started to print.
- No report was printed after iInitReportQuery.
- iInitReportQuery not found.



I have no clue where to look at. Any help appreciatd. using WD2024
This is the surrounding code.
------------
iWindowCancel(False,"No Title","No Text")
iParameter(iCopies,EDT_Copies)
iInitReportQuery(RPT_DeliveryNote_A4,sDocumentReference,"DEL")
iPrintReport(RPT_DeliveryNote_A4,False,"TRAYS")

----------

Any help appreciated.

Out of curiosity I loaded V28. Here all works fine even with the client's data where 2024 does not work.

Thanks
Noel



Edited 2 time(s). Last edit at 04/05/2024 02:48PM by ntnati.
Al
Re: Report Error at one client only
April 05, 2024 03:23PM
Hello Noel,

I would start out by putting a debug stop just before your code starts and then step through the code, checking all the variable values as you go.

Regards
Al
Re: Report Error at one client only
April 05, 2024 03:34PM
not even one line of the report is run. it happens immediately on the call

iPrintReport(RPT_DeliveryNote_A4,False,"TRAYS") XXXX this is the place where the error is given
Al
Re: Report Error at one client only
April 05, 2024 04:38PM
Hello Noel,

Try commenting out the IprintReport() function.
The three previous functions should then run and may indicate a problem. The iInitReportQuery() may not be returning any records for some reason.

Regards
Al
Re: Report Error at one client only
April 08, 2024 02:04AM
Hi Noel

On this one client, do they have exactly the same version of WD 2024 as all other sites?

Is the report a 'simple' report, or complex/composite in some way?

Have you raised a query with Tech support? (I had occasion to do this with a report query in WD2024, and they came right back with a patch).

Regards
Mike
Re: Report Error at one client only
April 09, 2024 09:56AM
Hi All,

thanks for your suggestions

I was busy going back to V28 so that I could continue to support the client.

Report is a 'simple' one with one query (with joins)

I will revert to tech support and let you know.

Thanks
Noel



Edited 1 time(s). Last edit at 04/09/2024 09:58AM by ntnati.
Re: Report Error at one client only
April 18, 2024 09:15AM
Hi,

I tried to re-convert to 2024 and all is well now. So Possibly something went wrong when upgrading the app.

Thanks for the various suggestions
.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: