cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Spool and No of Copies Control

Former Member
0 Kudos

Hi,

I want to print 3 smartforms....all in ONE Spool with DIFFERENT no of copies and requirement is to call each smartform only ONCE....How do I do the same.

Please advise as I enquired many people but none had solution.

Thanks,

Mohit.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You need to call the three smartforms in sequence in your print program, but the values you pass to parameter OUTPUT_OPTIONS will change.

So, first form OUTPUT_OPTIONS-TDNEWID = 'X', OUTPUT_OPTIONS-TDCOPIES = '2' (for example)

Next form OUTPUT_OPTIONS-TDNEWID = SPACE, OUTPUT_OPTIONS-TDCOPIES = '1' (for example)

Final form OUTPUT_OPTIONS-TDNEWID = SPACE, OUTPUT_OPTIONS-TDFINAL = 'X', OUTPUT_OPTIONS-TDCOPIES = '3' (for example)

Three forms, different number of copies, one spool request.

Regards,

Nick

Former Member
0 Kudos

Thanks Neil,

But by this too I dont get everything in One spool..I tried ur example but I get 3 different spools everytime...Donno where am going wrong.Is there any other parameter to be used alongwith?

Also while printing I observed that whatever copies are more among 3 prints,that is first sent for printing...and I dont want like this to happen becasue by this user is uncertain of what he would see first at output among three.

Please advice...I guess you are close to what I want but not totally...

Mohit.

Former Member
0 Kudos

Hi,

You may need to call function SSF_OPEN before your smartforms and SSF_CLOSE when they're complete.

Regards,

Nick

Former Member
0 Kudos

Thanks Nick,

But with what control parameters n output options because they are changing every time...

Mohit

Former Member
0 Kudos

Ah, I think I finally understand the problem. The number of copies is an attribute of the spool request, so in my first suggestion the second and third smartforms create new spool requests because the spool attributes don't match that of the first (no. of copies is different). My second suggestion to use SSF_OPEN won't work either because there you have to specify the spool attributes (including no. of copies), and when the smartforms print they won't reuse this open spool.

The only way I can think of getting around this is to call the form once for each copy and putting these all into one spool, which I can understand you don't want to do.

Looks like Srinivasa was right in the first place, better let him have some points.

Regards,

Nick

Former Member
0 Kudos

Hi Mohit,

I am sure that it is not possible to print 3 different smartforms in a single spool that too with different number of copies.Please try to research for alternate desing possiblities.

Hope this helps.

Please reward if useful.

Thanks,

Srinivasa