aknuth wrote:
How can I set the image alignment inside a table cell to right?
I tried the following:
Code:
row1.Cells[5].VerticalAlignment = VerticalAlignment.Top;
row1.Cells[5].Format.Alignment = ParagraphAlignment.Right;
Image image = row1.Cells[5].AddImage("blahblah.jpg");
image.RelativeVertical = RelativeVertical.Page;
but the image is still aligned to the left side of the cell.
Apart from that, is it possible to stretch the image to the cell dimensions by keeping the aspect ratio?
Regards,
André
hi.. maybe is too late.. but if you want to align image in a cell, you must put image in Paragraph objetc first, and that image take the paragraph alignment that you define
in the paragraph1 definition:
paragraph1.Format.Alignment= ParagraphAlignment.Right
paragraph1.AddImage("image.png").Width=50
in the table:
cell1.Add(paragraph1)