This project is read-only.

Expand/collapse icons not shown

Oct 27, 2010 at 12:56 PM

We are rendering some drilldown reports on a external server and the expand/collapse icon isn't show the image.

I look up the image url and it's linked to a internal url

any suggestion to fix this problem?


Oct 28, 2010 at 1:41 PM

The way i fixed this problem is to save a copy of TogglePlus.gif and ToggleMinus.gif

and then:

$result_html = preg_replace('/src=".+?Toggle(Plus|Minus).gif"/i', 'src="/ssrs/Toggle$1.gif"', $result_html);
right before you echo the

Oct 28, 2010 at 1:58 PM

Thanks, I'll try this option on php.

Oct 28, 2010 at 5:03 PM
Edited Oct 29, 2010 at 1:23 PM



if ($new_html = preg_replace('/src=".+?(TogglePlus|ToggleMinus|unsorted|sortAsc|sortDesc)\.gif"/i', 'src="/ssrs/$1.gif"', $result_html)) {
$result_html = $new_html;


to also take care of sorting arrows and handle possible errors.

(dont forget to also save the sorting arrows)

Nov 4, 2010 at 11:50 AM

another update on my regex i rare cases it cut out to much

this fixed it:

if ($new_html = preg_replace('/src="[^"]+?(TogglePlus|ToggleMinus|unsorted|sortAsc|sortDesc)\.gif"/i', 'src="/ssrs/$1.gif"', $result_html)) {
     $result_html = $new_html;


Jun 17, 2013 at 12:00 PM
i have same problem

the solutions u suggested required having a copy of the image and changing the URL in HTML rendering.

__* Is there no way to make the toggle image an embedded image ?__

If something like that is possible would be allot easier.

Thank for the help