Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashish Raikwar on Jun 08, 2008 23:48
open dhtmlx forum
image in dhtmlxGrid printView

Hi,
I tried to print my dhtmlxgrid that is having a column of type 'img', but in printView it is showing URL to this image on server.
I wanna know is there any way to customize the printView so that instead of printing URL to image we can print our custom text in img type column???
I am using professional version of dhtmlx lib.

Thanks and Regards
Ashish Raikwar

Answer posted by Support on Jun 09, 2008 04:48
The current version of printView render only cell values, it ignores any formating|transformation applied to them.
If you are using img excell to render images in grid, you can add next code line before grid creation

    eXcell_img.prototype.getImage=function(){
       return this.cell.innerHTML;
    }

as result, cells with "img" type , will be included in print view as images, not as urls