Yep of course, it gives me "2 000,00", with ou without any reference to 
iTextSharp, and 4.0.4 correctly display it.


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

Remove all references to itextsharp and send the strings to 
System.Console.Write(). What do you get? Is it different from what shows in the 
PDF?

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of François Miermont
> Sent: Thursday, December 20, 2007 4:52 PM
> To: 'Post all your questions about iText here'
> Subject: Re: [iText-questions] Strange behaviour on itextSharp 2.0.7
> 
> 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


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 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/


-------------------------------------------------------------------------
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