[Mono-list] Linux Printing Exception

Marc Glenn mjamon at ntsp.nec.co.jp
Tue Apr 1 05:25:42 EDT 2008


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,
     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



More information about the Mono-list mailing list