Code: Alles auswählen.
MODULE display_picure OUTPUT.
DATA:
lv_generated_url TYPE char1024.
DATA(lo_cont_dock) = NEW cl_gui_docking_container( side = cl_gui_docking_container=>dock_at_top extension = 400 ).
DATA(lo_html_viewer) = NEW cl_gui_html_viewer( parent = lo_cont_dock ).
* DATA(lt_html_content) = VALUE w3htmltabtype( ( line = '<html><body><img src="file://\\U:\tmp\Motocross.jpg" width="500" height="400"></body></html>' ) ).
DATA(lt_html_content) = VALUE w3htmltabtype( ( line = '<html><body><img src="file://\\<Laufwerk U aufelöst>\Motocross.jpg" width="500" height="400"></body></html>' ) ).
lo_html_viewer->load_data(
IMPORTING
assigned_url = lv_generated_url
CHANGING
data_table = lt_html_content ).
lo_html_viewer->show_url( url = lv_generated_url ).
ENDMODULE.
Folgende Benutzer bedankten sich beim Autor a-dead-trousers für den Beitrag:
Romaniac