cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms : How to include Printer commands in smartforms

Former Member
0 Kudos

I want to include printer command <esc>&l1T at the end of the smartform so that the printer can staple the form after printing.

Can any one please let me know how to include this in smart form ..?

Is there any way ..?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The printer commands for the tray controls can be controlled in smartform using the create->command option, i think this print control will not work out.

Instead please go the printer driver settings(SPAD) and uncomment the function in the stapling which enables the stapling.

Hope this helps you.

Answers (1)

Answers (1)

Former Member
0 Kudos

You should use the following way:

- Copy the device type into the Customer name space.

- Go via transaction SPAD - Device types into the device type and

here to tab strip 'Print controls'. Here add a print control

with the following contents: \e&l1T

(without flag 'Hexadecimal'; the \e is the escape character)

- Now go to your Smartform and add a command node (right-click

on the tree, Create - Flow logic - Command) and enter the print

control name into the field 'Include Printer Control'.

This adds the print control at this point. You only have to

select the right position of the command node in the tree

(and therefore the point of time, when the sequence shall be sent).

- If you want to check the print data, which the SAP sends to the

printer (and therefore whether the escape sequence was included

correctly), you can use note 5799, method 2.