Hello Sebastien, I installed libgdiplus on redhat 9 and it solved the problem. Thanks very much.
Regards, Marc Glenn Sebastien Pouliot wrote: > Hello Marc, > > On Tue, 2008-04-01 at 17:25 +0800, Marc Glenn wrote: > >> Hello guys, >> >> I am using System.Drawing.Printing namespace to print a data. >> I tried it first in *mono-1.2.5.1-Windows* and prints without a >> problem. >> >> However, when I tried compiling the same source code in *Redhat 9* >> with *mono-1.2.6* installed, >> > > Did you install/compile libgdiplus in this system ? If so make sure it's > the same version (1.2.6) than your mono installation. > > >> I received this exception from the console: >> >> /Exception: System.TypeInitializationException: An exception was thrown >> by the type initializer for System.Drawing.Printing.SysPrn ---> >> System.TypeInitializationException: An exception was thrown by the >> type initializer for System.Drawing.GDIPlus ---> >> *System.DllNotFoundException: gdiplus.dll* >> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup >> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) >> at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner >> exception stack trace --- >> >> at System.Drawing.Printing.SysPrn..cctor () [0x00000] --- End of inner >> exception stack trace --- >> >> at System.Drawing.Printing.PrinterSettings..ctor () [0x00000] >> at System.Drawing.Printing.PrintDocument..ctor () [0x00000] >> at (wrapper remoting-invoke-with-check) >> System.Drawing.Printing.PrintDocument:.ctor () >> / >> Anyone knows why this is happening? >> >> Thanks in advance, >> Marc Glenn >> >> _______________________________________________ >> Mono-list maillist - [email protected] >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
