If you are using addElement() the alignment comes from the Paragraph,
not from the cell. 

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of ZelluLoyd
> Sent: Monday, March 17, 2008 11:57 AM
> To: [email protected]
> Subject: [iText-questions] setHorizontalAlignment doesnt take 
> effect :(
> 
> 
> Hi,
> 
> i have a problem with horizontal alignments. Short: They dont take any
> effect but in cells with images.
> 
> I have a table with PdfPCells. For this cells i set 
> individual alignments
> (vertical and horizontal).
> To some cells are added elements like phrases, others contain images.
> The vertical alignment works for every cell great, but the horizontal
> alignment only has effect on cells with images. This i found 
> out cause i set
> for every cell the horiz. alignm ALIGN_RIGHT and only the 
> images get moved
> to the right side.
> Why the hor. alignment doesnt work at all with cells 
> containing phrases or
> chunks etc.?
> Textlines always stay where they were before... 
> 
> Has anybody an idea? Maybe it is caused of the table and a 
> setting referring
> to it?
> I would like to post the code, but cause the layout and its 
> settings are
> setted up and seperated in various methods this would get 
> very difficult...
> 
> Thanks Anyway :)


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to