PDA

View Full Version : text resource and graphic


marcalew
October 22nd, 2008, 10:13 AM
I am making a variable letter and I am trying to get the letter and the image signature to run together in a rule but when I put them together the text resource does not show.

Here is the code:


if (Field("letterType") == "cc")
{
return Resource("TextCC") + '<br>' + '<graphic file="' + 'LauraAlber'+ '.jpg" width=7200 height=7200>';

}

else

return Resource("TextOther");

So when I hit preview the image displays but the text resource does not show.

Any help would be great

kjacobson
October 22nd, 2008, 03:14 PM
Try putting this as the resource instead

Resource("TextCC").content

marcalew
October 22nd, 2008, 03:18 PM
Thanks but my image still does not show?

marcalew
October 22nd, 2008, 03:19 PM
No, that works thank you!!!