How to show attachments as icons in web

My requirement is I have one column in view where I have to show attachments as icons in web.Everything was fine when i used the formula @If(@Attachments; 5;8),with cpolunn property “Display values as icons” selected and view property “Treat view contents as HTML” unchecked.

when i checked the view property “Treat view contents as HTML” property then the icons are not displayed.

what to do

Subject: How to show attachments as icons in web

You will have to do it manually. Load a .gif image for icons you want and then put in a calculated field with img tags. Works for me.