"generic error ocurred in GDI+"

  • Thread starter Vicente Nicolau
  • Start date
V

Vicente Nicolau

hello,

I have a problem when I preview or print a document in an ISO A0. I have an
application which load an 10x10 image (bmp or

jpg) and spread it in the A0 paper. When I make the print preview, it starts
to draw (ev.Graphics.DrawImage) but after a few

seconds an exception throws:


System.Runtime.InteropServices.ExternalException: generic error ocurred in
GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32
width, Int32 height)
at ImpresionA0.PrintForm.pd_PrintPage(Object sender, PrintPageEventArgs ev)
in

c:\investigacion\impresiona0\frmprintpreview.cs:line 126
that is the instruction: ev.Graphics.DrawImage(bmp, posX, posY);

Does anybody know what can I do? Does anybody know where can I inform?

Thanks.
 
V

Vicente Nicolau

Hi Hasnain,

I have included the ASP.NET user in the Administrator group, but trhows the
same exception.

Thanks.



Hasnain siraj said:
Hi,

I thinks it's a security issue. Try giving sufficient access rights to the
ASP.NET user and than try to run the program error free.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top