[Mono-dev] [PATCH] Use the correct type for S.D.Printing.PrintDocument.PrintController

Carlos Alberto Cortez calberto.cortez at gmail.com
Wed Aug 2 05:30:29 EDT 2006


S.D.Printing.PrintDocument.PrintController has as default a new instance
of S.W.F.PrintControllerWithStatusDialog, which is in SWF assembly. 

The current code assigns a new instance of S.D.P.StandardPrintController
to PrintDocument.PrintController, which isn't the right behaviour.

The problem is that it's not a good idea to add System.Windows.Forms as
a reference to the System.Drawing assembly IMHO. So, the approach is to
load the SWD assembly using reflection and then cache the type .ctor.

Also, PrintDocument.PrintController should be never null, and should get
a new PrintControllerWithStatusDialog instance, just like .Net does.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_document.diff
Type: text/x-patch
Size: 1959 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060802/4bb0c4e7/attachment.bin 

More information about the Mono-devel-list mailing list