cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForms Image Printout

former_member202079
Participant
0 Kudos

Hello Experts,

I have a problem when printing(hardcopy) my Smartforms. Images are not coming , on printview images are there

But when i trying to take printout images disappears, i am getting all images from different ip.(http://...........).

Why is this happening and is there a way around it? Some people are telling me that I must develop my Smartform according to the printer that will be used. That seems very odd.

Please advise.

Thanks,

Heman(A1)

Accepted Solutions (1)

Accepted Solutions (1)

luis_quispe
Explorer
0 Kudos

Hi, change the printer and updates the printer driver. This is a problem Basis.

regards

lquispe

former_member202079
Participant
0 Kudos

Thanks For Your Reply,

Those Image I am getting from se78 They are print but those i am getting from http:
.............

not able to print.

i have appox 1 lacks images according to my material , so its not possible for me first to get these images in se78.

i m able to get these images through picture controls in my smartform output , print preview is ok , but when take the printout(hardcopy) or change in pdf image disappear.

Thank.

Waiting For Your Reply,

Regards: Heman(A1).

former_member202079
Participant
0 Kudos

Hello Friends,

No Body has face the same problam?

waiting for reply.

Thanks.

former_member272911
Participant
0 Kudos

Hi Hemant,

Are you printing from portal or from SAP.

Thanks

Kamath

former_member202079
Participant
0 Kudos

Hi Kamath

Thanks for Reply.

I am printing from sap. i got images thru picture control not from graphic in my smartforms.

Thanks

Heman(A1)

former_member272911
Participant
0 Kudos

Hi Hemant,

Can you try saving it as spool request and then previewing the same.

Thanks

Kamath

former_member202079
Participant
0 Kudos

Hi Kamath

when i am trying to make the preview from spool , images are disappears.

I am sendin my code i am writing this in main window of smartform. images appear when i excute .and when i m trying to print images are disapperas but those i am using from se78(using graphics) those images are still there.

i transfer my output to pdf also but same problam here those images from picturecontrol ar no coming.

DATA: docking TYPE REF TO cl_gui_docking_container,

picture_control_1 TYPE REF TO cl_gui_picture,

url(256) TYPE c ,

text(256) TYPE c ,

text1(256) TYPE c .

DATA: n TYPE i.

DATA: P TYPE i.

P = '50'.

N = '100'.

LOOP AT ta_itab INTO wa_itab .

CREATE OBJECT picture_control_1 EXPORTING parent = docking.

CHECK sy-subrc = 0.

CALL METHOD picture_control_1->set_3d_border

EXPORTING

border = 9.

CALL METHOD picture_control_1->set_display_mode

EXPORTING

display_mode = cl_gui_picture=>display_mode_stretch.

CALL METHOD picture_control_1->set_position

EXPORTING

height = 50

left = n

top = P

width = 80.

CONCATENATE '< http:///'

wa_itab-matnr '.jpg' INTO wa_itab-text .

CALL METHOD picture_control_1->load_picture_from_url

EXPORTING

url = wa_itab-text.

IF sy-subrc = '0'.

ENDIF.

                                  • MODIFY ta_itab FROM wa_itab.

*****************ENDLOOP.

BREAK ABAPDEV.

*****end of code for pic**************************************

IF N GE '400'.

P = P + 50.

N = '100'.

ENDIF.

n = n + 100 .

modify ta_itab from wa_itab.

ENDLOOP.

Thanks alot.

Hemant

former_member272911
Participant
0 Kudos

Hi Hemant,

Try the code in this standrad program.

RSDEMO_HTML_VIEWER

Regrads

Kamath

former_member202079
Participant
0 Kudos

Hi Kamth,

But this program are using Screen container to display images. but in smartform how to use screen?

thanks.

Hemant

former_member272911
Participant
0 Kudos

hi Hemant,

But your program doesn't seem to use smartform. It is using alv for displaying the data.

Thanks

Kamath

former_member272911
Participant
0 Kudos

Ok Sorry, I just went though ur code. Let me check and get back to you

former_member272911
Participant
0 Kudos

Hi Hamant,

AS what element you have taken to display the image in smartform.

former_member202079
Participant
0 Kudos

Hi Kamath

i am not using graphics for image display,

i am using picture control method for image display refer to coding those i post before.

Thanks.

Regards: Hemant(A1)

former_member272911
Participant
0 Kudos

Hi Hemant,

How are you displaying the picture control fetched in ur code in smartform.

Thanks

kamath

former_member202079
Participant
0 Kudos

Hi Kamath,

I am just writing picture contrl code in main window(program line) and able to see images in my output.

Thanks.

Ragards: hemant.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Hemant,

I am also facing same problem.

Did you got any solution for this??

Regards,

Nidhi.

aidan_black
Active Contributor
0 Kudos

Hi,

Did you upload the graphics via transaction SE78? Do they print if you use a windows device type like SAPWIN? For PCL device types there can be some problems for graphics uploaded via RSTXLDMC.

Regards,

Aidan

former_member202079
Participant
0 Kudos

Hello Expert,

No body Has The solution, I am waiting for ur reply.

Thanks.

former_member272911
Participant
0 Kudos

Hi Hemant,

Try to print your samrtform in diffrenet printer other than you are currently printing. There might be issue with printer driver or some authorisation in printing.

Thanks

Kamath