[Mono-winforms-list] print/print preview not working for drawstring

pacolov reactive at gmx.net
Tue Nov 25 14:14:15 EST 2008

Hi, there,

I am also struggeling with System.Drawing.Printing on Mono/Linux.
I think the problem is even worse than strings simply to disappear. In fact
thei are placed incorrect, means that clipping rectangle seems to be correct
whilst the location of the String on the canvas has some inexplainable
offset. I am attaching these two Images. As you can see, large Strings can
partially be seend while small strings are being pushed out of the clipping

This is how it looks like on mono 2.0.1/linux (CUPS via distiller and
http://www.nabble.com/file/p20687776/mono.png mono.png 

This is how it should look like (Windows XP, FreePDF XP):
http://www.nabble.com/file/p20687776/win32.png win32.png 

The Code is something similar to the original post, not worth mentioning.
Note: Whilst printing result in erronious output, drawing with the same
OnPrint-Procedure iside a control or on a bitmap file works perfectly. So
the error seems to be located inside the printing routines.

You can also see, that lines, rectangles and images are placed in a correct
manner. I am still trying printer settings /w font resolution etc. but no
success yet :-(
Do some people do print with mono-driven apps? I think so ;-) So, what is
the clue?
View this message in context: http://www.nabble.com/print-print-preview-not-working-for-drawstring-tp18630399p20687776.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

More information about the Mono-winforms-list mailing list