Am 19.04.2011 um 23:23 schrieb Sergio Tamborini:

> Hi Christian.
> I've found a possible bug in DynaPDF. If I draw a string that contains 
> endofline characters, that ones will be ignored. I've tried with "endofline", 
> with "chr(10)" and with "chr(13)" too, but the same result.

You are drawing with the graphics class replacement from the DynaPDF Graphics 
project?

DrawString here uses WriteText which does not do line breaks.

You can change code to this:

Sub DrawString(text as string, x as double, y as double)
  text = ReplaceAll(text, "\", "\\") // escape all backslashes
  call pdf.WriteFTextEx(myOffsetX+x, myOffsety+y-myTextSize, pdf.GetPageWidth, 
-1, pdf.ktaLeft, text)
End Sub

Greetings
Christian

-- 
See you in Essen, Germany at the REAL Studio Conference 2011

Registration and details here:
http://www.realsoftware.de/events/realcon2011essen/


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to