PrintPRO 8 for .NET - User Guide > How To > Debug |
Because debugging and writing debug information to a log file is time consuming and expensive, PrintPRO™ provides the ability to control the level of information written to the debug log as well as the ability to turn off writing to a file completely.
Use the properties and methods within the PrintPro Class below to adjust the settings of your debugging, event handling, memory and IDispose for optimal performance.
When DebugErrorLevel is set to Detailed, PrintPRO logs most of your calls to the component including the occurrence of exceptions, the result of most major operations and the operation of each event it raises. |
After you are done using a PrintPRO object, call the Dispose method.
Listed below is a cross-reference of error codes and their corresponding descriptions:
-5000 — No printer DC.
-5001 — A document has already been started.
-5002 — A document has not been started.
-5003 — Error starting document.
-5004 — Error starting page.
-5005 — Print dialog failed probably because the user clicked the Cancel button.
-5006 — Error ending page.
-5007 — Bad radius value.
-5008 — Bad angle value.
-5009 — The Windows StretchBlt function failed when printing a bitmap.
-5010 — Out of memory.
-5011 — Invalid printer number.
-5012 — Invalid parameter.
-5013 — No printer selected.
-5014 — Cannot open the printer.
-5015 — The selected printer does not support getting values for this property.
-5016 — The selected printer does not support setting values for this property.
-5017 — Invalid DIB handle.
-5018 — Setup dialog failed, probably because the user pressed the Cancel button.
-5019 — The DIB has not been set.
-5020 — Cannot get default printer information from the system.
-5021 — Cannot write to the printer.
-5022 — Cannot end a print job.
-5023 — The specified page does not exist.
-5024 — A print preview for the current page does not exist.
-5025 — Cannot get metafile DC.
-5026 — Cannot create overlay.
-5027 — Cannot open file.
-5028 — The DIB is invalid.
-5029 — Error reading file.
-5030 — Invalid TIFF size.
-5031 — Error writing file.
-5032 — TIFF tag not found.
-5033 — TIFF tag item not found.
-5034 — A color profile associated with the ICM object is invalid.
-5035 — Generic GDI.
-5036 — Invalid template.
-5037 — Invalid print preview.
-5038 — Invalid handle.
-5039 — Cannot get error message.
-5040 — Generic Win32 error.
-5041 — Printing disabled.
-5042 — Invalid pointer.
-5043 — Invalid bin ID.
-5044 — Invalid paper ID.
-5045 — Cannot create compatible device.
-5333 — Invalid license edition.
-5400 — Invalid worker object ID.
-5500 — Error initializing worker.
-5900 — Internal error.
-5995 — Invalid license.
-5996 — Invalid web code.
-5999 — Not licensed.