[Mono-winforms-list] print/print preview not working for drawstring
equistango at gmail.com
Wed Nov 26 17:38:55 EST 2008
pacolov a écrit :
> 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?
What OS/platform are you using? Do you compile mono yourself or use
official packages? Your Windows screenshot, was it taken using Mono for
Windows or MS .NET?
Mono printing seems to be broken for me since at least 1.9.
I get the same results as you (text missing) since Fedora 9 + Mono 1.9.
The problem is still present in Fedora 10 + Mono 2.0.1. Also present in
SVN. BTW, I'm running 64-bit Linux.
I filed bug #449482 and attached your screenshot.
More information about the Mono-winforms-list