Skip to Content
avatar image
Former Member

Smartform Spool and No of Copies Control

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 22, 2007 at 02:43 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2007 at 02:57 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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