Hi there, I had a problem in getting an image to display that was inside a
paragraph when added to a table cell. I searched the forum and found the
answer:
"Wrap the image in a chunk".
Ok. This worked, the image is displayed, although I didn't understand why I
should need to do that (the paragraph displayed correctly outside of the
table cell). However, another problem, the image is no longer aligned to
where I would like it to be.
My original paragraph code was like this (*Note, I am coding in Coldfusion
so somethings will look a little different):
...
summaryImage = image.GetInstance("#request.mailshotimages##mailshotimage#");
summaryImage.SetAlignment(bitor(image.ALIGN_RIGHT,image.TEXTWRAP));
summaryImage.SetIndentationLeft(8);
summary.add(summaryImage);
summary.add(summaryPhrase);
...
This displayed correctly outside of the table cell, but the image
disappeared inside the table cell. So, the revised code looks like this:
...
summaryImage = image.GetInstance("#request.mailshotimages##mailshotimage#");
summaryImage.SetAlignment(bitor(image.ALIGN_RIGHT,image.TEXTWRAP));
summaryImage.SetIndentationLeft(8);
summary.add(chunk.init(summaryImage,0,0);
summary.add(summaryPhrase);
...
The image now shows up in the table cell but is no longer aligned to the
right or having text-wrap.
Any help would be greatly appreciated,
Dominic
--
View this message in context:
http://www.nabble.com/Image-in-paragraph-not-showing-in-a-cell-tf3945794.html#a11192891
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/