Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A generic error occurred in GDI+

Status
Not open for further replies.

Hueby

MIS
Oct 20, 2004
321
US
I have a very very basic application. It just involves some user inputs and brings up crystal reports. At some point I started to get a error...

I am getting this error:

"An unhandled exception of type 'System.Runtime.InteropServices.ExternalException' occurred in system.windows.forms.dll

Additional information: A generic error occurred in GDI+."

I get it while debuggin my app, and it points to:

Code:
Public Class Form1

and the Form1 is highlighted in green....

Where do I begin to trouble shoot this???
 
If that doesn't work, I would comment out all code relating to the Crystal Reports. Back in the days of VB6 & CR8.5 I had this problem (wasn't any where near as descriptive error tho). After removing the CR control it ran fine. I readded the control and started getting the error again. Check out CR's website and see if they have a listing there. I had to update my CR control to get it to work.
 
Well, I built the program anyway... and when running it, once the Crystal report window viewer loads, the report will flash up, then the viewer will just be a white with a big red X in it. It gives me the "A generic error occurred in GDI+." error again.

So... it does seems to be Crystal Report related then. I have not messed with anything CR related, but maybe the CR control is corrupt.. I'll have to do some looking here..

Thanks
 
Are you using the CR package that came with .Net? Or a seperate stand alone package?

If you are using the CR.Net package I would suggest going through the configuration process and removing CR. Restart the machine and run through the config again and add CR back in.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top