cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Header Images displayed in a ALV_GRID

Former Member
0 Kudos

Hello to everyone,

I've managed to display a image in the top of a ALV_GRID report. What's happening now is that, when the user presses the print button (in order to print the ALV_GRID report) the image isn't printed.

It's possible to print the image on top of the 1st page and the report after it? (it should be...) How can this be done?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Just execute :<b>BALVST02_GRID</b> this program and take aprintout and let us know if u r getting the image in printout.

Regards,

Anjali

Former Member
0 Kudos

Hello Anjali,

I've executed and printed the result of this example program and the images of the top of the screen didn't appear.

Thank you for your help.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Images in top of page will come when u print an alv grid.

Pls let me know if u r using OOps or classical alv?

If its OOPS:

*--------------------------------------------------------
*       CLASS v_lcl_event_receiver DEFINITION
*--------------------------------------------------------
class v_lcl_event_receiver definition.

  public section.

    methods:

    handle_print_top_of_page for event print_top_of_page of
                                       cl_gui_alv_grid,

    handle_top_of_page for event top_of_page of
                                 cl_gui_alv_grid.

endclass.
*--------------------------------------------------------
*       CLASS V_LCL_EVENT_RECEIVER IMPLEMENTATION
*--------------------------------------------------------
class v_lcl_event_receiver implementation.

  method handle_print_top_of_page.
    if sy-pagno = 1.

      perform top_of_page.

    endif.
  endmethod.

  method handle_top_of_page.
    perform top_of_page.
  endmethod.

endclass.

Also, hop u have handled:

SET HANDLER v_event_receiver2->handle_print_top_of_page FOR o_alvgrid2.

SET HANDLER v_event_receiver2->handle_top_of_page FOR o_alvgrid2.

Regards,

Anjali

former_member188685
Active Contributor
0 Kudos

Hi,

i think it will not print. you may go for Scripts/Samrt froms for printing logo or images.

Regards

Vijay

Former Member
0 Kudos

Pedro,

To my knowledge, I don't think it will be possible.

You might want to go for SMART Forms.

Regards,

Ravi