04-20-2007 11:19 AM
Hi,
I've created an ALV using this class and with addnode method. By default its coming the folder icon with the every nodes. When this printed it is giving # , i can't adjust the settings for my printer. So I don't want any icons come up on the screen. Suggest an better option either icon should not come up on the screen else it should not print # while printed. your suggestions are appreciated and awarded.
Regards
Radhu
04-21-2007 12:19 PM
Hi Shankar,
While building your hiearachy of tree, Don't pass the any image in the field T_IMAGE, pass space here then you won't get the any icon in the display. But i prefer to display the image otherwise you will miss the relation to the parent and child eleement. If you are not giving the imporattncfe to the related then display them as ALV table display instaed of display them as Tree.
Warm Regards,
Vijay
04-25-2007 4:49 AM
Hi Radhu,
when u use add_node method of class cl-gui_alv_tree by default folder icon comes at paent node and for child node some diffrent icon comes.
since while printing it is displayed # instead of proper icon, you can try different icons for nodes.Hope this will not give any printing error.
to change the icon use is_node_layout parameter of add_node method.
N_IMAGE for normal display icon(without expanded) and
EXP_IMAGE for icon after the node is expaned.(icon will change from n_image to exp_image when node is expanded).
you can pass same icon here.
icons are found in <ICON> program. pass 4 character icon code.
if change in icon solves the printing problem - its good
otherwise we will find some other solution .
Regards,
Mihir.