Exporting DOC with images

Talk about Printing & Exporting Settings

Moderators: ne_moj, zewa

webnail
Junior
Junior
Posts: 22
Joined: Oct 2nd, '10, 09:13

Exporting DOC with images

Postby webnail » Sep 18th, '14, 12:32

Hi,
I wonder if I could do some modifications to your .doc exporting script in order to be able to export also images shown in datagrid view mode (not the record value of the field but the image itself). Could you please assist if you have any idea of how to do this?
Thanks a lot
Last edited by webnail on Sep 18th, '14, 13:24, edited 1 time in total.

webnail
Junior
Junior
Posts: 22
Joined: Oct 2nd, '10, 09:13

Re: Exporting DOC with images

Postby webnail » Sep 18th, '14, 13:23

No worries,
I 've just figured it out. I modified the datagrid class on row 2818 adding this:

Code: Select all

                            }elseif ($fp_type == 'image'){
                                $real_path = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/uploads";
                                $content .= '<img src="'.$real_path.'/'.$row[$c].'" />';


Thanks
Vassilis


Return to “Settings: Printing & Exporting”