on 11-29-2006 3:44 PM
hig guys
i am trying to print a sapscript form but when trying to print more than 1 page it is printing what is supposed to be on the second page on the the first page, in other words it is printing everything on one page instead of separate pages. what might be the problem because on print preview it is coming out correct
HI,
I am assuming that you put the correct pages in the Page Windows i mean
For first page give next page as NEXE apge, and for Next apge give the next page as NEXT page..
and also have a look at the call <b>CALL FUNCTION 'OPEN_FORM'</b>
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = HLP_FORMULAR
DEVICE = UP_DEVICE
LANGUAGE = T001-SPRAS
OPTIONS = ITCPO
DIALOG = FLG_DIALOG
IMPORTING
RESULT = ITCPP
EXCEPTIONS
FORM = 1.
Here, you have lot of options to give in the FM ..
See the Option for the
ITCPO-TDPAGESLCT = SPACE. "all pages
ITCPO-TDNEWID = 'X'. "create new spool dataset
ITCPO-TDCOPIES = 1. "one copy
ITCPO-TDDEST = P_TDDEST. "name of printer
ITCPO-TDPREVIEW = SPACE. "no preview
ITCPO-TDCOVER = SPACE. "no cover page
ITCPO-TDDATASET = P_TDDATASET. "dataset name
* IF zw_xvorl EQ space.
ITCPO-TDSUFFIX1 = P_TDDEST. "name or printer
* ELSE.
* itcpo-tdsuffix1 = 'TEST'. "test run
* ENDIF.
ITCPO-TDSUFFIX2 = 'Titre Formulaire'. "name of report variant
ITCPO-TDIMMED = P_TDIMMED. "print immediately?
ITCPO-TDDELETE = SPACE. "do not delete after print
ITCPO-TDTITLE = 'Titre Formulaire'. "title of pop-up-window
ITCPO-TDCOVTITLE = 'Titre Formulaire'. "title of print-cover
ITCPO-TDAUTORITY = P_TDAUTORITY. "print authority
ITCPO-TDARMOD = 1. "print only
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it comes correctly in printpreview...while sent to a printer normally the printer settings are adjusted and the whole data is transferred to printer at atime and automatically adjusts and prints in one page...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.