newline character

hello,

what is the newline character in a pdf.

when I draw a string lets say "Hello \n World \n"
it draw it properly.

But if the string is pulled from a localization resx file, it doesnt process the newline characters when drawing and you see

Hello \n World \n

instead of

Hello
World

any idea/suggestions?

1 Reply

AG Angappan G Syncfusion Team July 22, 2010 08:36 AM UTC

Hi Theo,

Thank you for your interest in Essential Studio.

We have found that the string returned by the resource file considers the newline characters as part of the string and they were adding the escape sequences to preserve them as it is but that is not the case in the locally defined string, that is the reason for this behavior. I have attached a simple sample to illustrate this and the snapshot of the string values for your reference.

Sample Link:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=95614678161990.zip

Images Link:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=images1257410742.zip

Please let us know if you have any queries.

Regards,
Angappan.

Loader.
Up arrow icon