‎2005 Nov 03 2:10 PM
Hi,
I want to keep my spool request after i've actually print it. Before making a call to the smartform, I clear the parameter c-sf_output_options-tddelete and make the call to SSF_OPEN. Also my user settings are set to keep the spool after printing. Still, when the spool request is created, i see in his attributes that the spool will be deleted. What am I doing wrong?
Thx in advance
‎2005 Nov 03 5:57 PM
Check with parameter USER_SETTINGS while calling smartform.
Regards
Mahendra
‎2005 Nov 03 2:29 PM
Hi,
You are doing correct only. By default the spool will be there. So i don't think you need to clear the variable also.
Thx
Sudheer.
‎2005 Nov 03 2:34 PM
The problem is, that when I actually print, the spool disappears, even if I said to keep the request.
‎2005 Nov 03 2:43 PM
Hi,
I think the previous job is not printed successfully, then we require new spool id, so in such cases make use of TDNEWID = 'X'. Please try like this.
Thx,
Sudheer
‎2005 Nov 03 2:59 PM
Hi,
As a test case I cleared the spool. I set the necessary parameters I wanted. Some of the settings i made were tdnewid = 'X', tddelete = '', tdlifetime = 8, ... Then I did the call to function 'SSF_OPEN'. If I went in debug mode at that time, i see in the spool a new print request, but one of the attributes of that print request contains 'Delete after print'. So I see in the creation of my print request that some parameters I set are apparently ignored.
Any ideas?
thx
‎2005 Nov 03 5:57 PM
Check with parameter USER_SETTINGS while calling smartform.
Regards
Mahendra
‎2005 Nov 04 10:34 AM
I've found the problem, i had to explicitly uncheck the export parameter "user settings", because it was default checked in my smartform. So this parameter overruled the control parameters and output options. Strange is that in my user settings the attribute "Delete after print" was unchecked, so why he still deletes it, no idea. But anyway, now it works.
So nice tip Mahendra, i've given you points.