crincoli
31st January 2002, 14:14
I call a session A via function server.
Session A call a subsession B.
B normally print a report.
But apparently, when in api mode, sessions don't print anything. Don't execute on.choice of print.data.
Open.report fails.
My client wish report.
The only solution I see is to use zoom.to instead of afs.
What do you think? Bye Pietro
Note: A=tisfc0202m000, B=tihra1211s000
Smiffy
31st January 2002, 15:01
Hi, I had a similar problem to yourself. Please search for my previous postings. Search on STPAPI.
cheers
Smiffy
31st January 2002, 15:17
I cant seem to find my posting to do with printing with STPAPI functionality.
Basically my solution required source code, so if you dont have it, it wont work.
Please find attached a document, which I wrote for the attentinon of other developers that work with me. Please ignore any reference to specific 'bespoke' sessions in the document.
I hope this document helps (I couldnt be bothered editing it to make it more generic).
Smiffy
31st January 2002, 16:42
If the session you call using STPAPI calls a subsession, you will need to use the command stpapi.handle.subproc. Otherwise, your session may hang !
crincoli
31st January 2002, 17:00
Thanks Smiffy your document was very useful.
Basically, to print the report I added the instructions:
choice.print.data:
before.choice:
save.api.mode=api.mode
api.mode=false
after.choice:
api.mode=save.api.mode
thanks again Pietro
bh_vfp
28th February 2002, 17:21
Originally posted by crincoli
Thanks Smiffy your document was very useful.
Basically, to print the report I added the instructions:
choice.print.data:
before.choice:
save.api.mode=api.mode
api.mode=false
after.choice:
api.mode=save.api.mode
thanks again Pietro
Crincoli,
:confused: Where do you add this instruction ?
In the reportscript or in the scource where you use the stpapi ?
Bas
mark_h
28th February 2002, 17:34
These commands go into the session that the function server is running against. So you need the session source script that the FS will run against.
Good Luck!
Mark
crincoli
28th February 2002, 17:36
In the script of the subsession, that is, the script of the session that print report.
I hope this is clear, bye Pietro