PrintPRO 8 for ActiveX - User Guide > How To > Debug Your Application |
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 objects below to adjust the settings of your debugging, event handling, memory and IDispose for optimal performance.
When ErrorLevel 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 using the PrintPRO object, call the Dispose method.
Please make sure that the SelectDefaultPrinter method or SetDefaultPrinter method is being called before using the StartPrintDoc 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 — StartPrintDoc method failed
-5004 — Windows StartPage function failed
-5005 — Print dialog failed probably because the user clicked the Cancel button
-5006 — EndPrintDoc failed probably because the printer reported an error
-5007 — Bad radius value
-5008 — Bad angle value
-5009 — The Windows StretchBlt function failed when printing a bitmap
-5010 — No Memory
-5011 — Invalid printer number
-5012 — Invalid parameter
-5013 — No printer selected
-5014 — Cannot open the printer
-5015 — Cannot get the property value
-5016 — Cannot set the property value
-5017 — Invalid DIB handle
-5018 — Setup dialog failed, probably because the user pressed the Cancel button
-5019 — The Picture property or hDIB property 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 — Invalid print preview page number
-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 — No DIB
-5029 — Error reading file
-5030 — Invalid TIFF size
-5031 — Error writing file
-5032 — TIFF tag not found
-5033 — TIFF tag item not found
-5034 — Invalid profile
-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 — Printer driver failure
-5995 — Invalid license
-5996 — Invalid web code
-5999 — Not license