KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q47018: Presentation Graphics Charting Function: Error Codes

Article: Q47018
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_c
Last Modified: 26-JUL-1989

The following information is taken from the Presentation Graphics
header file, PGCHART.H.

Listed below are the error codes returned by the Presentation Graphics
charting functions, which include the following:

   _pg_chart                 _pg_chartms
   _pg_chartscatter          _pg_chartscatterms
   _pg_chartpie

The error codes are as follows. Error numbers greater than 100 will
terminate the charting routine, others will cause default values to be
used.

Manifest Constant      Value      Definition
-----------------      -----      -----------

_PG_NOTINITIALIZED     102        Charting library not initialized by
                                  _pg_initchart and _pg_defaultchart
_PG_BADSCREENMODE      103        Screen not set to graphics mode
_PG_BADCHARTSTYLE       04        Invalid chart style
_PG_BADCHARTTYPE       104        Chart type invalid
_PG_BADLEGENDWINDOW    105        Invalid legend window specified
_PG_BADCHARTWINDOW      07        x1=x2 or y1=y2 in chart window spec
_PG_BADDATAWINDOW      107        If the chart window is too small
_PG_NOMEMORY           108        Not enough memory for data arrays
_PG_BADLOGBASE          05        Log base <= 0
_PG_BADSCALEFACTOR      06        Scale factor = 0
_PG_TOOSMALLN          109        Number of data points <= 0
_PG_TOOFEWSERIES       110        Number of series <= 0

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.