cancel
Showing results for 
Search instead for 
Did you mean: 

Program to print adobe form using my actual printer

jincent_navarro
Explorer
0 Kudos

Hi Experts,

Can anyone help me to print my adobe form using my printer, i tried to print my adobe form with my driver program and it doesnt work, please help me.

This is my code:

*for Print preview

IF cb_demo = 'X'.
ls_outputparams-noprint = 'X'.
ls_outputparams-preview = 'X'.
ls_outputparams-nopributt = 'X'.

ELSE.
ls_outputparams-nodialog = 'X'.
ls_outputparams-device = 'PRINTER'.
ls_outputparams-reqnew = 'X'. "NEW SPOOL REQUEST
ls_outputparams-reqimm = 'X'. "IMMEDIATE SPOOL PRINT
ls_outputparams-reqfinal = 'X'.
ls_outputparams-copies = '001'.
ls_outputparams-getpdf = 'X'.
ls_outputparams-assemble = 'X'.
ls_outputparams-dest = 'PDF1'. "'BIRCAS'/'LOCL'.
ls_outputparams-rqposname = 'EPSON LQ-310 ESC/P2'.

ENDIF.

fp_docparams-langu = 'E'.
fp_docparams-dynamic = 'X'.

CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ls_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZSD_INVOICE_BIR_PRINT_AF'
IMPORTING
e_funcname = lv_funcname
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
.

CALL FUNCTION lv_funcname
EXPORTING
/1bcdwb/docparams = fp_docparams
i_doctype = gc_doctype
i_class = gc_class
i_nvat = gv_nvat
i_print_cnt = g_count
i_print_txt = g_text
i_cash = gv_cash
gv_var1 = gv_var1
gv_var2 = gv_var2
i_header = gt_header
i_detail = gt_detail
IMPORTING
/1BCDWB/FORMOUTPUT = l_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.

PascalBremer
Advisor
Advisor

Hi jincent,
could you describe in more detail what does not work? Can you print other documents put in the spool?
I see you are generating a dynamic pdf. Does your printer support this format?

Best regards
Pascal

jincent_navarro
Explorer
0 Kudos

Hi Pascal,

If i print a smartforms with my printer, it works, but if i print an adobe forms, it's not working, how to know if my printer does supports this kind of format, please tell me. thank you.

Best regards,

Jincent

jincent_navarro
Explorer
0 Kudos

Hi Pascal,

If i print smartforms with my actual printer, it works, but if i print an adobe forms, it's not working, how to know if my printer supports these kind of format, please tell me, thank you.

Best regards,

Jincent

jincent_navarro
Explorer
0 Kudos

Hi Pascal,

If i print a smartforms to my actual printer, it works but if i print an adobe forms, it's not working, can you please tell me how to identify if my printer does supports these kind of format, thank you.

best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Reshug
Explorer
0 Kudos

is your ADS support your intalled printer ?