Microsoft KB Archive/169732

From BetaArchive Wiki
Knowledge Base

Article ID: 169732

Article Last Modified on 10/7/2003


  • Microsoft PowerPoint 98 for Macintosh
  • Microsoft PowerPoint 97 Standard Edition

This article was previously published under Q169732


The ScaleWidth and ScaleHeight arguments are ignored when you execute the code in the example provided with the "Export Method" topic of Microsoft PowerPoint Visual Basic Help.


The example contains an invalid value (0.5) for the ScaleWidth and ScaleHeight arguments.


Set the ScaleWidth and ScaleHeight arguments to a long integer that is greater than or equal to one.


The ScaleWidth and ScaleHeight arguments define the number of pixels that are used to scale the width and height of the graphic when it is exported as a CompuServe Graphics Interchange Format (.gif), JPEG File Interchange Format (.jpg), or Portable Network Graphics (.png) file. These arguments are ignored when exporting as a Windows Metafile (.wmf) file.

Keep the following tips in mind when setting the ScaleWidth and ScaleHeight arguments:

  • The arguments must be set to a value greater than one. A value less than or equal to one results in the ScaleWidth and ScaleHeight arguments being ignored.
  • The default type for the arguments is Long (or long integer). Only integer values are stored for variables of type Long. If you set the arguments to a decimal number, anything to the right of the decimal point is rounded to the nearest whole number. For example, setting ScaleWidth to 1.49 yields a graphic that is 1 pixel wide, and setting ScaleWidth to 1.50 yields a graphic that is 2 pixels wide.
  • The graphic formats, .png, .gif, and .jpg, are exported at a rate of approximately 96 pixels per inch. ScaleWidth and ScaleHeight values of less than 24 pixels result in a graphic that is less than 0.25 inches for either dimension. A graphic of this size would rarely have enough detail to clearly represent the slide image.

Additional query words: 8.0 Document Error docerr macppt

Keywords: kbfix kbhelp kbprogramming KB169732