473,799 Members | 3,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"generic error ocurred in GDI+"



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.Dr awImage) but after a few

seconds an exception throws:
System.Runtime. InteropServices .ExternalExcept ion: generic error ocurred in
GDI+.
at System.Drawing. Graphics.CheckE rrorStatus(Int3 2 status)
at System.Drawing. Graphics.DrawIm age(Image image, Int32 x, Int32 y, Int32
width, Int32 height)
at ImpresionA0.Pri ntForm.pd_Print Page(Object sender, PrintPageEventA rgs ev)
in

c:\investigacio n\impresiona0\f rmprintpreview. cs:line 126
that is the instruction: ev.Graphics.Dra wImage(bmp, posX, posY);

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

Thanks.
Jul 21 '05 #1
1 3869
Hi Hasnain,

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

Thanks.

"Hasnain siraj" <Hasnain si***@discussio ns.microsoft.co m> escribió en el
mensaje news:18******** *************** ***********@mic rosoft.com...
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.
"Vicente Nicolau" wrote:


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.Dr awImage) but after a few

seconds an exception throws:
System.Runtime. InteropServices .ExternalExcept ion: generic error ocurred in GDI+.
at System.Drawing. Graphics.CheckE rrorStatus(Int3 2 status)
at System.Drawing. Graphics.DrawIm age(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
at ImpresionA0.Pri ntForm.pd_Print Page(Object sender, PrintPageEventA rgs ev) in

c:\investigacio n\impresiona0\f rmprintpreview. cs:line 126
that is the instruction: ev.Graphics.Dra wImage(bmp, posX, posY);

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

Thanks.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1694
by: Prasana | last post by:
Hi EveryBody, I have one Problem When I am Creating the DNS Zone Using Resource Record using System Management. Iam Getting an Error Called "Generic Error". Iam Able to Create a Primary Zone File Using CreateZone Class. But How to create other files like SOA, MX, Reverse look Up & other files. Iam working on Win 2000 M/c.Kindly Help. -- Regards, Prasana Srinivasan Software Engineer
3
8723
by: JPARKER | last post by:
Our DB2 8.2 FixPak9 database running on Win2K crashed with after reporting this message SQL0902C A system error (reason code = 9") ocurred I have searched the DB2 documentation as well as the Web and can't find a list of what the reason codes mean. Does anyone know what reason code 9 is? Thanks
6
2147
by: Patrick Dugan | last post by:
Hello, I'm trying to load different images (icons) into a PictureBox1.Image. The first image loads just fine, but the second image always returns the error "Invalid property used." It doesn't matter what icons are loaded. The first always shows up and any icons after that give me the error. Here is the offending code: The "DestinationPath" variable is the full path and filename of the icon
13
4665
by: lgbjr | last post by:
Hello All, I have some pictureboxes on a VB.NET form that are linked to an AccessDB. If the user wishes to open or edit an image, I need to save the image in the picturebox to a temp file, then open that file in whatever viewer/editor is the default for the users system. I tried to do picturebox1.image.save(filename), which results in "A Generic error occured in GDI+". However, if I use an unbound picturebox, do a
1
391
by: Vicente Nicolau | last post by:
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:
5
11132
by: Torben Laursen | last post by:
I am writing a COM in C# using visual studio 2005 and VSTO. Inside the code I use some support classes that are generic but they are not used in the inferface of the COM. However I still get a number of warnings from the compiler like: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning : Type library exporter warning processing 'Utility.Array1D`1, Test2003'. Warning: Type library exporter encountered a...
0
1531
by: epoxyparser | last post by:
Hi all, I work as a glue coder and often have to interface existing mechanisms with other platforms. Creating bridge code between command-line functionality and desktop GUIs takes up a lot of that definition, along with creating abstraction layers for older-style C code. I've been working with .net (almost exclusively with C++.net, just a bit of C#) to create end-user interfaces with a relatively good deal of success (I'm used to ansi/STL and...
0
4244
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have a bitmap which I have retreived through the WebBrowser DrawToBitmap method into a Bitmap. When I try to save the bitmap I get "ExternalException occurred A generic error occurred in GDI+" Why can't I save the bitmap? I need to save it - how to do?
7
10398
by: j4richard | last post by:
Help please, I am getting this "Unhandled Exception has occurred in your application" " A Generic error occurred in GDI+" See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7563
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5584
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.