System.Runtime.InteropServices.ExternalException: Error genérico en GDI+

  • Thread starter Thread starter Isaias Formacio Serna
  • Start date Start date
I

Isaias Formacio Serna

Hi, I get this exception when I try to run my program on a Windows 98 + NET
Framework 1.1, if I run it on a Windows XP + NET Framework 1.1 it works
fine...

This is the rest of the message:

************** Texto de la excepción **************
System.Runtime.InteropServices.ExternalException: Error genérico en GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
Single x, Single y)
at Ajustes.Form1.corte_PrintPage(Object sender, PrintPageEventArgs e)
at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs
e)
at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs
e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument
document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at Ajustes.Form1.ImprimeCorteParcial()
at Ajustes.Form1.btnImprimir_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

I happens on my PrintPage event.

What can I do to make this program run under Windows 98???

I'll appreciate any help, regards,

Isaias Formacio
 
Back
Top