I don't understand as I just explain how to reproduce it :
Document doc = new Document(PageSize.A4); PdfWriter writer = 
PdfWriter.GetInstance(doc, new FileStream(@"C:\test.pdf", 
FileMode.Create));
 
doc.Open();

PdfPTable table = new PdfPTable(1);
decimal amount = 2000.00m;
table.DefaultCell.HorizontalAlignment = Element.ALIGN_RIGHT; 
table.AddCell(new Phrase(amount.ToString("n2", 
System.Globalization.CultureInfo.GetCultureInfo(1036)))); 
table.AddCell(new Phrase(amount.ToString("0,000.00", 
System.Globalization.CultureInfo.GetCultureInfo(1036))));
table.AddCell(new Phrase("2 000,00"));

doc.Add(table);
doc.Close();

This should reproduced the bug.

I'm agree that it's very strange that the bug only appears if I use C# number 
formatting.
But if changing only the itextSharp version from 4.0.4 to 4.0.7 involve this 
behavior I'm pretty sure I can say that it come from iTextSharp no ?


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Bruno Lowagie
Envoyé : jeudi 20 décembre 2007 17:21
À : Post all your questions about iText here
Objet : Re: [iText-questions] Strange behaviour on itextSharp 2.0.7

François Miermont wrote:
> Any news about the stange behaviour ?

If we can't reproduce it, we can't comment on it.
There's a 99% chance the problem is not iText related, because as Paulo says: 
iText doesn't format anything.
br,
Bruno



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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